File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -275,9 +275,6 @@ func (s *gnoNativeService) SetPassword(ctx context.Context, req *connect.Request
275
275
}
276
276
277
277
func (s * gnoNativeService ) RotatePassword (ctx context.Context , req * connect.Request [api_gen.RotatePasswordRequest ]) (* connect.Response [api_gen.RotatePasswordResponse ], error ) {
278
- s .lock .Lock ()
279
- defer s .lock .Unlock ()
280
-
281
278
// Get all the signers, before trying to update the password.
282
279
var signers = make ([]* gnoclient.SignerFromKeybase , len (req .Msg .Addresses ))
283
280
for i := range len (req .Msg .Addresses ) {
@@ -287,6 +284,8 @@ func (s *gnoNativeService) RotatePassword(ctx context.Context, req *connect.Requ
287
284
}
288
285
}
289
286
287
+ s .lock .Lock ()
288
+ defer s .lock .Unlock ()
290
289
getNewPassword := func () (string , error ) { return req .Msg .NewPassword , nil }
291
290
for i := range len (req .Msg .Addresses ) {
292
291
if err := s .keybase .Rotate (signers [i ].Account , signers [i ].Password , getNewPassword ); err != nil {
You can’t perform that action at this time.
0 commit comments