Skip to content

Commit

Permalink
add service name to respond event (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
SegueII authored Sep 27, 2020
1 parent cad7dc2 commit 2c0b5f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/service/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ func handleMsgRespondService(ctx sdk.Context, k keeper.Keeper, msg *types.MsgRes
sdk.NewAttribute(sdk.AttributeKeySender, msg.Provider.String()),
sdk.NewAttribute(types.AttributeKeyRequestContextID, request.RequestContextId.String()),
sdk.NewAttribute(types.AttributeKeyRequestID, msg.RequestId.String()),
sdk.NewAttribute(types.AttributeKeyServiceName, request.ServiceName),
sdk.NewAttribute(types.AttributeKeyConsumer, request.Consumer.String()),
),
})
Expand Down
2 changes: 2 additions & 0 deletions modules/service/keeper/module_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ func (k Keeper) RequestModuleService(
sdk.NewAttribute(sdk.AttributeKeySender, moduleService.Provider.String()),
sdk.NewAttribute(types.AttributeKeyRequestContextID, request.RequestContextId.String()),
sdk.NewAttribute(types.AttributeKeyRequestID, requestIDs[0].String()),
sdk.NewAttribute(types.AttributeKeyServiceName, request.ServiceName),
sdk.NewAttribute(types.AttributeKeyConsumer, request.Consumer.String()),
),
})

Expand Down

0 comments on commit 2c0b5f1

Please sign in to comment.