@@ -26,15 +26,15 @@ type (
2626 }
2727)
2828
29- // WithUnaryClientResourceExtractor sets the resource extractor of unary client request.
29+ // WithClientResourceExtractor sets the resource extractor of unary client request.
3030// The second string parameter is the full method name of current invocation.
3131func WithClientResourceExtractor (fn func (context.Context , client.Request ) string ) Option {
3232 return func (opts * options ) {
3333 opts .clientResourceExtract = fn
3434 }
3535}
3636
37- // WithUnaryServerResourceExtractor sets the resource extractor of unary server request.
37+ // WithServerResourceExtractor sets the resource extractor of unary server request.
3838func WithServerResourceExtractor (fn func (context.Context , server.Request ) string ) Option {
3939 return func (opts * options ) {
4040 opts .serverResourceExtract = fn
@@ -55,15 +55,15 @@ func WithStreamServerResourceExtractor(fn func(server.Stream) string) Option {
5555 }
5656}
5757
58- // WithUnaryClientBlockFallback sets the block fallback handler of unary client request.
58+ // WithClientBlockFallback sets the block fallback handler of unary client request.
5959// The second string parameter is the full method name of current invocation.
6060func WithClientBlockFallback (fn func (context.Context , client.Request , * base.BlockError ) error ) Option {
6161 return func (opts * options ) {
6262 opts .clientBlockFallback = fn
6363 }
6464}
6565
66- // WithUnaryServerBlockFallback sets the block fallback handler of unary server request.
66+ // WithServerBlockFallback sets the block fallback handler of unary server request.
6767func WithServerBlockFallback (fn func (context.Context , server.Request , * base.BlockError ) error ) Option {
6868 return func (opts * options ) {
6969 opts .serverBlockFallback = fn
0 commit comments