diff options
Diffstat (limited to 'lib/go/thrift/middleware.go')
-rw-r--r-- | lib/go/thrift/middleware.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/go/thrift/middleware.go b/lib/go/thrift/middleware.go index b575e16c4..8a788df02 100644 --- a/lib/go/thrift/middleware.go +++ b/lib/go/thrift/middleware.go @@ -78,11 +78,11 @@ type ClientMiddleware func(TClient) TClient // // This is provided to aid in developing ClientMiddleware. type WrappedTClient struct { - Wrapped func(ctx context.Context, method string, args, result TStruct) error + Wrapped func(ctx context.Context, method string, args, result TStruct) (ResponseMeta, error) } // Call implements the TClient interface by calling and returning c.Wrapped. -func (c WrappedTClient) Call(ctx context.Context, method string, args, result TStruct) error { +func (c WrappedTClient) Call(ctx context.Context, method string, args, result TStruct) (ResponseMeta, error) { return c.Wrapped(ctx, method, args, result) } |