Skip to content

Commit 7a7d55f

Browse files
r.v.stupnikovaeneasr
r.v.stupnikov
authored andcommitted
feat: fix by reviewer's comments
1 parent 01da891 commit 7a7d55f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/cli/handler_janitor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (_ *JanitorHandler) Args(cmd *cobra.Command, args []string) error {
7070
!flagx.MustGetBool(cmd, OnlyGrants) &&
7171
!flagx.MustGetBool(cmd, OnlyLoginSessions) {
7272
return fmt.Errorf("%s\n%s\n", cmd.UsageString(),
73-
"Janitor requires at least one of --tokens, --requests or --grants to be set")
73+
"Janitor requires at least one of --tokens, --requests, --grants or --login-sessions to be set")
7474
}
7575

7676
limit := flagx.MustGetInt(cmd, Limit)

persistence/sql/persister_consent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ func (p *Persister) VerifyAndInvalidateLogoutRequest(ctx context.Context, verifi
608608
})
609609
}
610610

611-
func (p *Persister) FlushInactiveLoginSessions(ctx context.Context, _ time.Time, limit, batchSize int) error {
611+
func (p *Persister) FlushInactiveLoginSessions(ctx context.Context, _ time.Time, limit, _ int) error {
612612
return p.transaction(ctx, func(ctx context.Context, c *pop.Connection) error {
613613
// "hydra_oauth2_authentication_request"
614614
var lr consent.LoginRequest

0 commit comments

Comments
 (0)