This commit is contained in:
tobi 2021-10-13 13:50:24 +02:00 committed by GitHub
parent 27605f7c47
commit a07e62e49e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 9 deletions

View file

@ -28,8 +28,7 @@ import (
)
func newDebugQueryHook() bun.QueryHook {
return &debugQueryHook{
}
return &debugQueryHook{}
}
// debugQueryHook implements bun.QueryHook

View file

@ -35,7 +35,7 @@ import (
// tokenStore is an implementation of oauth2.TokenStore, which uses our db interface as a storage backend.
type tokenStore struct {
oauth2.TokenStore
db db.Basic
db db.Basic
}
// newTokenStore returns a token store that satisfies the oauth2.TokenStore interface.
@ -44,7 +44,7 @@ type tokenStore struct {
// the tokens in the DB once per minute and deletes any that have expired.
func newTokenStore(ctx context.Context, db db.Basic) oauth2.TokenStore {
ts := &tokenStore{
db: db,
db: db,
}
// set the token store to clean out expired tokens once per minute, or return if we're done

View file

@ -30,12 +30,12 @@ type Importer interface {
}
type importer struct {
db db.DB
db db.DB
}
// NewImporter returns a new Importer interface that uses the given db.
func NewImporter(db db.DB) Importer {
return &importer{
db: db,
db: db,
}
}

View file

@ -26,7 +26,7 @@ import (
type TransTestSuite struct {
suite.Suite
db db.DB
db db.DB
}
func (suite *TransTestSuite) SetupTest() {

View file

@ -44,12 +44,12 @@ type Filter interface {
}
type filter struct {
db db.DB
db db.DB
}
// NewFilter returns a new Filter interface that will use the provided database.
func NewFilter(db db.DB) Filter {
return &filter{
db: db,
db: db,
}
}