Ignore error on not finding an authority expiry queue entry #39

Merged
ashwin merged 1 commits from pm-hot-fix-authority-reserve into main 2024-07-19 11:30:16 +00:00
Showing only changes of commit c68564276c - Show all commits

View File

@ -568,8 +568,13 @@ func (k Keeper) insertAuthorityExpiryQueue(ctx sdk.Context, name string, expiryT
// deleteAuthorityExpiryQueue deletes an authority name from the authority expiry queue. // deleteAuthorityExpiryQueue deletes an authority name from the authority expiry queue.
func (k Keeper) deleteAuthorityExpiryQueue(ctx sdk.Context, name string, authority registrytypes.NameAuthority) error { func (k Keeper) deleteAuthorityExpiryQueue(ctx sdk.Context, name string, authority registrytypes.NameAuthority) error {
expiryTime := authority.ExpiryTime expiryTime := authority.ExpiryTime
existingNamesList, err := k.AuthorityExpiryQueue.Get(ctx, expiryTime) existingNamesList, err := k.AuthorityExpiryQueue.Get(ctx, expiryTime)
if err != nil { if err != nil {
if errors.Is(err, collections.ErrNotFound) {
return nil
}
return err return err
} }