From b820475620963d41f01fe302a3847ea12d3ed3e1 Mon Sep 17 00:00:00 2001 From: MarkjoyMa Date: Sun, 7 Jul 2024 12:51:30 +0800 Subject: [PATCH] x --- zrpc/internal/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zrpc/internal/client.go b/zrpc/internal/client.go index aff9e863f9b7..fabba097b3df 100644 --- a/zrpc/internal/client.go +++ b/zrpc/internal/client.go @@ -120,7 +120,7 @@ func (c *client) buildUnaryInterceptors(timeout time.Duration) []grpc.UnaryClien if c.middlewares.Timeout { interceptors = append(interceptors, clientinterceptors.TimeoutInterceptor(timeout)) } - if !c.middlewares.CustomKey { + if c.middlewares.CustomKey { interceptors = append(interceptors, clientinterceptors.UnaryCustomKeysInterceptor) }