Skip to content

Commit

Permalink
Mark session as ready when initialization finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikPelli committed Nov 20, 2024
1 parent 68bf910 commit 202799c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func (s *session) Dial(ctx context.Context) error {
err := s.createDataPath(ctx)
if err != nil {
_ = s.Close()
} else {
s.isReady.Store(true)
}
return err
}
Expand Down

0 comments on commit 202799c

Please sign in to comment.