From 61169a43c0b6a2aef7cfc41c0c64a8d33e06fd36 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 18 Dec 2023 16:34:57 -0600 Subject: [PATCH] Remove debugging lines --- x/registry/keeper/keeper.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/x/registry/keeper/keeper.go b/x/registry/keeper/keeper.go index dfc3fa7f..32dbebaf 100644 --- a/x/registry/keeper/keeper.go +++ b/x/registry/keeper/keeper.go @@ -354,19 +354,21 @@ func (k Keeper) ProcessAttributes(ctx sdk.Context, record types.RecordType) erro rt := reflect.TypeOf(attr) switch rt.Kind() { case reflect.Slice: - av := attr.([]interface{}) - for i := range av { - indexKey := GetAttributesIndexKey(key, av[i]) - k.Logger(ctx).Error(fmt.Sprintf("attr indexKey: %s", indexKey)) - if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil { - return err + { + av := attr.([]interface{}) + for i := range av { + indexKey := GetAttributesIndexKey(key, av[i]) + if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil { + return err + } } } default: - indexKey := GetAttributesIndexKey(key, attr) - k.Logger(ctx).Error(fmt.Sprintf("attr indexKey: %s", indexKey)) - if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil { - return err + { + indexKey := GetAttributesIndexKey(key, attr) + if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil { + return err + } } } }