Skip to content

Commit

Permalink
Run sdk.Init() once (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
maratori authored Dec 10, 2024
1 parent 0ef26c0 commit ed9e247
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func (s *SDK) Init(ctx context.Context) error {
return err
}
}
s.inits = nil // make sure nothing breaks if the user calls Init() twice or without WithExplicitInit() option
return nil
}

Expand Down

0 comments on commit ed9e247

Please sign in to comment.