Skip to content

Commit

Permalink
fix(spanner): mark SessionPoolConfig.MaxBurst deprecated (#4115)
Browse files Browse the repository at this point in the history
  • Loading branch information
hengfengli committed May 19, 2021
1 parent a2538e1 commit d60a686
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spanner/session.go
Expand Up @@ -411,6 +411,14 @@ type SessionPoolConfig struct {

// MaxBurst is the maximum number of concurrent session creation requests.
//
// Deprecated: MaxBurst exists for historical compatibility and should not
// be used. MaxBurst was used to limit the number of sessions that the
// session pool could create within a time frame. This was an early safety
// valve to prevent a client from overwhelming the backend if a large number
// of sessions was suddenly needed. The session pool would then pause the
// creation of sessions for a while. Such a pause is no longer needed and
// the implementation has been removed from the pool.
//
// Defaults to 10.
MaxBurst uint64

Expand Down

0 comments on commit d60a686

Please sign in to comment.