Skip to content

Commit e63dead

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controller/registry/grpc/source.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ func (s *SourceStore) stateTimeout(state connectivity.State) time.Duration {
203203

204204
func (s *SourceStore) watch(ctx context.Context, key registry.CatalogKey, source SourceConn) {
205205
state := source.ConnectionState
206+
207+
// Make initial connection
208+
source.Conn.Connect()
209+
210+
// Periodically observe connection state change
206211
for {
207212
select {
208213
case <-ctx.Done():

0 commit comments

Comments
 (0)