Skip to content

Commit 086dd28

Browse files
committed
rpc_util: improve comment for the option function
1 parent b1c6496 commit 086dd28

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dialoptions.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,9 @@ func WithResolvers(rs ...resolver.Builder) DialOption {
648648
})
649649
}
650650

651-
// WithSharedRecvBufferPool returns a DialOption that specifies shared buffer pool
652-
// for parsing. Setting this will reduce the memory allocation in the parser.
651+
// WithSharedRecvBufferPool returns a DialOption that configures the ClientConn
652+
// to use the provided shared buffer pool for parsing incoming messages. Depending
653+
// on the application's workload, this could result in reduced memory allocation.
653654
//
654655
// # Experimental
655656
//

server.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,9 @@ func NumStreamWorkers(numServerWorkers uint32) ServerOption {
554554
})
555555
}
556556

557-
// SharedRecvBufferPool returns a DialOption that specifies shared buffer pool
558-
// for parsing. Setting this will reduce the memory allocation in the parser.
557+
// SharedRecvBufferPool returns a ServerOption that configures the server
558+
// to use the provided shared buffer pool for parsing incoming messages. Depending
559+
// on the application's workload, this could result in reduced memory allocation.
559560
//
560561
// # Experimental
561562
//

0 commit comments

Comments
 (0)