From 23987ee55b1d0579d302524a07f183527dca5045 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Fri, 9 Jun 2017 14:23:14 -0700 Subject: [PATCH] Update comment and typo --- services/frontendhost/frontend.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/frontendhost/frontend.go b/services/frontendhost/frontend.go index 115536de..2b02f4dd 100644 --- a/services/frontendhost/frontend.go +++ b/services/frontendhost/frontend.go @@ -1116,14 +1116,14 @@ func (h *Frontend) CreateConsumerGroup(ctx thrift.Context, createRequest *c.Crea common.TagCnsPth: common.FmtCnsPth(createRequest.GetConsumerGroupName()), }) - // Check auth for read desitnation + // Check auth for read destination authResource := common.GetResourceURNReadDestination(h.SCommon, createRequest.DestinationPath) err = h.checkAuth(ctx, authResource, common.OperationRead, lclLg) if err != nil { return nil, err } - // Check auth for create destination + // Check auth for create consumer group authResource = common.GetResourceURNCreateConsumerGroup(h.SCommon, createRequest.ConsumerGroupName) err = h.checkAuth(ctx, authResource, common.OperationCreate, lclLg) if err != nil {