Add size to channel to fix blocking when .Close is called. (#1632)

Signed-off-by: Phil Kedy <phil.kedy@gmail.com>
This commit is contained in:
Phil Kedy 2022-04-01 11:20:43 -04:00 committed by GitHub
parent 1d990fdc27
commit 195901f1b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ func (m *Resolver) registerMDNS(instanceID string, appID string, ips []string, p
var err error
// Register the app id with the resolver.
done := make(chan struct{})
done := make(chan struct{}, 1)
key := fmt.Sprintf("%s:%d", appID, port) // WARN: we do not support unique ips.
// NOTE: The registrations map is used to track all registered