Merge pull request #1016 from surik/filestore-index-deletion-optimisation

Do not persist filestore when deleting indices
This commit is contained in:
pascal-fischer 2023-07-20 18:07:33 +02:00 committed by GitHub
commit 9e540cd5b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,7 +334,7 @@ func (s *FileStore) DeleteHashedPAT2TokenIDIndex(hashedToken string) error {
delete(s.HashedPAT2TokenID, hashedToken)
return s.persist(s.storeFile)
return nil
}
// DeleteTokenID2UserIDIndex removes an entry from the indexing map TokenID2UserID
@ -344,7 +344,7 @@ func (s *FileStore) DeleteTokenID2UserIDIndex(tokenID string) error {
delete(s.TokenID2UserID, tokenID)
return s.persist(s.storeFile)
return nil
}
// GetAccountByPrivateDomain returns account by private domain