diff options
author | Yuxuan 'fishy' Wang <yuxuan.wang@reddit.com> | 2020-04-30 23:49:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 07:49:29 +0100 |
commit | 0c173bf9e02ee218ee7427aa0521845f674a3dd3 (patch) | |
tree | a0d1b165a5ca116907acf4f224c08b7b1558ba75 /CHANGES.md | |
parent | 48730688fbf00b03f0dcdf3eb44963ad894bd98e (diff) | |
download | thrift-0c173bf9e02ee218ee7427aa0521845f674a3dd3.tar.gz |
THRIFT-5164: Small cleanup on example code
Client: go
Godoc requires at least one other exported type/function to render the
whole example file in the example, so export
simpleProcessorLoggingMiddleware to make the example of
ProcessorMiddleware more helpful.
Currently it's rendered in a not very helpful way:
https://pkg.go.dev/github.com/apache/thrift@v0.13.1-0.20200430141240-5cffef964a08/lib/go/thrift?tab=doc#example-ProcessorMiddleware
Compare to the client middleware example rendering:
https://pkg.go.dev/github.com/apache/thrift@v0.13.1-0.20200430141240-5cffef964a08/lib/go/thrift?tab=doc#example-ClientMiddleware
While I'm here, also update CHANGES.md to mention ClientMiddleware.
[skip ci]
Diffstat (limited to 'CHANGES.md')
-rw-r--r-- | CHANGES.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md index b8bef21e2..0c394c48c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,6 +20,7 @@ - [THRIFT-5069](https://issues.apache.org/jira/browse/THRIFT-5069) - Add TSerializerPool and TDeserializerPool, which are thread-safe versions of TSerializer and TDeserializer. - [THRIFT-5164](https://issues.apache.org/jira/browse/THRIFT-5164) - Add ProcessorMiddleware function type and WrapProcessor function to support wrapping a TProcessor with middleware functions. +- [THRIFT-5164](https://issues.apache.org/jira/browse/THRIFT-5164) - Add ClientMiddleware function type and WrapClient function to support wrapping a TClient with middleware functions. ## 0.13.0 |