Ignore error on not finding an authority expiry queue entry
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 3m3s
Build / build (pull_request) Successful in 3m33s
E2E Tests / test-e2e (pull_request) Successful in 4m48s
Unit Tests / test-unit (pull_request) Successful in 2m31s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 9m39s
SDK Tests / sdk_tests (pull_request) Successful in 10m54s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m55s
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 3m3s
Build / build (pull_request) Successful in 3m33s
E2E Tests / test-e2e (pull_request) Successful in 4m48s
Unit Tests / test-unit (pull_request) Successful in 2m31s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 9m39s
SDK Tests / sdk_tests (pull_request) Successful in 10m54s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m55s
This commit is contained in:
parent
b2be09e0e4
commit
c68564276c
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user