Skip to content

Commit

Permalink
dial while connection is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
bashar-515 committed Jan 30, 2025
1 parent dae1a24 commit 15c08ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions grpc/app_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewAppConn(ctx context.Context, cloud *config.Cloud, logger logging.Logger)
appConn.dialer = utils.NewStoppableWorkers(ctx)

appConn.dialer.Add(func(ctx context.Context) {
for {
for appConn.conn != nil {
if ctx.Err() != nil {
return
}
Expand All @@ -72,8 +72,6 @@ func NewAppConn(ctx context.Context, cloud *config.Cloud, logger logging.Logger)
appConn.connMu.Lock()
appConn.conn = conn
appConn.connMu.Unlock()

return
}
})

Expand Down

0 comments on commit 15c08ac

Please sign in to comment.