From e8677d166c41efacae949b5c864bd7e13e0afb50 Mon Sep 17 00:00:00 2001 From: LaurenceLiZhixin <382673304@qq.com> Date: Sun, 16 Jan 2022 19:23:53 +0800 Subject: [PATCH] fix: lint --- protocol/dubbo3/dubbo3_invoker.go | 2 +- protocol/dubbo3/reflection/serverreflection.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/protocol/dubbo3/dubbo3_invoker.go b/protocol/dubbo3/dubbo3_invoker.go index bc07957bed..1e33bf2eb0 100644 --- a/protocol/dubbo3/dubbo3_invoker.go +++ b/protocol/dubbo3/dubbo3_invoker.go @@ -174,7 +174,7 @@ func (di *DubboInvoker) Invoke(ctx context.Context, invocation protocol.Invocati for _, k := range attachmentKey { if v := di.GetURL().GetParam(k, ""); len(v) > 0 { - invocation.SetAttachments(k, v) + invocation.SetAttachment(k, v) } } diff --git a/protocol/dubbo3/reflection/serverreflection.go b/protocol/dubbo3/reflection/serverreflection.go index 629538fe58..74c7a92a39 100644 --- a/protocol/dubbo3/reflection/serverreflection.go +++ b/protocol/dubbo3/reflection/serverreflection.go @@ -22,7 +22,6 @@ The service implemented is defined in: https://github.com/grpc/grpc/blob/master/src/proto/grpc/reflection/v1alpha/reflection.proto. */ -// nolint package reflection import (