Skip to content

Commit 5dcf2b2

Browse files
author
r.v.stupnikov
committed
feat: fix by reviewer's comments
1 parent ca7970e commit 5dcf2b2

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
@@ -57,7 +57,7 @@ func (_ *JanitorHandler) Args(cmd *cobra.Command, args []string) error {
5757
!flagx.MustGetBool(cmd, OnlyGrants) &&
5858
!flagx.MustGetBool(cmd, OnlyLoginSessions) {
5959
return fmt.Errorf("%s\n%s\n", cmd.UsageString(),
60-
"Janitor requires at least one of --tokens, --requests or --grants to be set")
60+
"Janitor requires at least one of --tokens, --requests, --grants or --login-sessions to be set")
6161
}
6262

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

persistence/sql/persister_consent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ func (p *Persister) VerifyAndInvalidateLogoutRequest(ctx context.Context, verifi
437437
})
438438
}
439439

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

0 commit comments

Comments
 (0)