Skip to content

Commit

Permalink
wait until StateHasSession
Browse files Browse the repository at this point in the history
  • Loading branch information
shanth96 committed Feb 4, 2025
1 parent d3ff598 commit 355c59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/topo/zk2topo/zk_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func dialZk(ctx context.Context, addr string) (*zk.Conn, <-chan zk.Event, error)
return nil, nil, ctx.Err()
case event := <-session:
switch event.State {
case zk.StateConnected:
case zk.StateHasSession:
// success
return zconn, session, nil

Expand Down

0 comments on commit 355c59e

Please sign in to comment.