Skip to content

Commit 91c3bdb

Browse files
committed
refactor: adjust MFA struct alignment
1 parent fbc3462 commit 91c3bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/mfa/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ type session struct {
5656
Challenge string `json:"challenge"`
5757
Code string `json:"-"`
5858
ExpiresAt time.Time `json:"expires_at"`
59-
Attempts int `json:"attempts"`
6059
MaxAttempts int `json:"max_attempts"`
60+
Attempts int `json:"attempts"`
6161
}
6262

6363
// ChallengeRequest represents MFA challenge request
@@ -269,7 +269,7 @@ func (s *Server) statusHandler(w http.ResponseWriter, r *http.Request) {
269269
}
270270

271271
// healthHandler returns service health
272-
func (s *Server) healthHandler(w http.ResponseWriter, r *http.Request) {
272+
func (s *Server) healthHandler(w http.ResponseWriter, _ *http.Request) {
273273
s.mu.RLock()
274274
sessionCount := len(s.sessions)
275275
s.mu.RUnlock()

0 commit comments

Comments
 (0)