Skip to content

Commit 5569d5b

Browse files
committed
Minor.
1 parent ee84985 commit 5569d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keystore/admin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ func (ks *keystore) ImportKeys(ctx context.Context, req ImportKeysRequest) (Impo
282282
}
283283

284284
func (ks *keystore) ExportKeys(_ context.Context, req ExportKeysRequest) (ExportKeysResponse, error) {
285-
ks.mu.Lock()
286-
defer ks.mu.Unlock()
285+
ks.mu.RLock()
286+
defer ks.mu.RUnlock()
287287

288288
result := ExportKeysResponse{}
289289
for _, keyReq := range req.Keys {

0 commit comments

Comments
 (0)