Skip to content

Commit

Permalink
chore(deepsource): fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangzi committed Apr 11, 2024
1 parent 8fc532e commit a77d3dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func createAuthTest(file string) *Auth {
dbTest.NewDHT("auth:email", 0)
dbTest.NewDHT("auth:mobile", 0)

m, err := authTest.CreateMigrator(context.Background(), migrate.WithSuffix(".sqlite"))
m, err := authTest.CreateMigrator(migrate.WithSuffix(".sqlite"))
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ func WithDHT(email, mobile string) Option {
}

// WithSignInCode set sign in code length and ttl
func WithSignInCode(len int, ttl time.Duration) Option {
func WithSignInCode(l int, ttl time.Duration) Option {
return func(a *Auth) {
a.signInCodeLen = len
a.signInCodeLen = l
a.signInCodeTTL = ttl
}
}

0 comments on commit a77d3dc

Please sign in to comment.