Skip to content

Commit

Permalink
fix: copy max lifetime when passing options to the datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
ecordell committed Dec 10, 2021
1 parent 46fe9d1 commit 34e0e48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cmd/datastore.go
Expand Up @@ -56,6 +56,7 @@ func (o *DatastoreConfig) ToOption() Option {
to.URI = o.URI
to.GCWindow = o.GCWindow
to.RevisionQuantization = o.RevisionQuantization
to.MaxLifetime = o.MaxLifetime
to.MaxIdleTime = o.MaxIdleTime
to.MaxOpenConns = o.MaxOpenConns
to.MinOpenConns = o.MinOpenConns
Expand Down Expand Up @@ -104,6 +105,7 @@ func NewDatastore(options ...Option) (datastore.Datastore, error) {
}
log.Info().Msgf("using %s datastore engine", opts.Engine)

log.Info().Msgf("datastore options: %#v", opts)
return dsBuilder(opts)
}

Expand Down

0 comments on commit 34e0e48

Please sign in to comment.