Skip to content

Commit 2c6c0e4

Browse files
author
Per Goncalves da Silva
committed
initiate conenction before watch
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 3812d1a commit 2c6c0e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/controller/registry/grpc/source.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ func (s *SourceStore) Add(key registry.CatalogKey, address string) (*SourceConn,
189189
s.sources[key] = source
190190
s.sourcesLock.Unlock()
191191

192+
// Try to initiate a connection
193+
source.Conn.Connect()
194+
192195
go s.watch(ctx, key, source)
193196

194197
return &source, nil

0 commit comments

Comments
 (0)