mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
core/lint: upgrade golangci-lint, replace interface{} with any (#5099)
* core/lint: upgrade golangci-lint, replace interface{} with any * regen proto
This commit is contained in:
parent
614048ae9c
commit
1a5b8b606f
135 changed files with 341 additions and 340 deletions
|
@ -32,7 +32,7 @@ import (
|
|||
type Authenticator interface {
|
||||
Refresh(context.Context, *oauth2.Token, identity.State) (*oauth2.Token, error)
|
||||
Revoke(context.Context, *oauth2.Token) error
|
||||
UpdateUserInfo(context.Context, *oauth2.Token, interface{}) error
|
||||
UpdateUserInfo(context.Context, *oauth2.Token, any) error
|
||||
}
|
||||
|
||||
// A Manager refreshes identity information using session and user data.
|
||||
|
|
|
@ -24,7 +24,7 @@ func TestRefreshSessionScheduler(t *testing.T) {
|
|||
time.Now,
|
||||
sessionRefreshGracePeriod,
|
||||
sessionRefreshCoolOffDuration,
|
||||
func(ctx context.Context, sesionID string) {
|
||||
func(_ context.Context, _ string) {
|
||||
calls.Append(time.Now())
|
||||
},
|
||||
"S1",
|
||||
|
@ -51,7 +51,7 @@ func TestUpdateUserInfoScheduler(t *testing.T) {
|
|||
|
||||
ctx := context.Background()
|
||||
userUpdateInfoInterval := 100 * time.Millisecond
|
||||
uuis := newUpdateUserInfoScheduler(ctx, userUpdateInfoInterval, func(ctx context.Context, userID string) {
|
||||
uuis := newUpdateUserInfoScheduler(ctx, userUpdateInfoInterval, func(_ context.Context, _ string) {
|
||||
calls.Append(time.Now())
|
||||
}, "U1")
|
||||
t.Cleanup(uuis.Stop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue