Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bashar-515 committed Feb 5, 2025
1 parent e55a28f commit 19572b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rpc/dial_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type dialOptions struct {
unaryInterceptor grpc.UnaryClientInterceptor
streamInterceptor grpc.StreamClientInterceptor

// conn can be used to force the webrtcSignalingAnswerer to use a preexisting connection instead of dialing and managing its own.
// signalingConn can be used to force the webrtcSignalingAnswerer to use a preexisting connection instead of dialing and managing its own.
signalingConn ClientConn
}

Expand Down Expand Up @@ -268,7 +268,10 @@ func WithUnaryClientInterceptor(interceptor grpc.UnaryClientInterceptor) DialOpt
func WithStreamClientInterceptor(interceptor grpc.StreamClientInterceptor) DialOption {
return newFuncDialOption(func(o *dialOptions) {
if o.streamInterceptor != nil {
o.streamInterceptor = grpc_middleware.ChainStreamClient(o.streamInterceptor, interceptor)
o.streamInterceptor = grpc_middleware.ChainStreamClient(
o.streamInterceptor,
interceptor,
)
} else {
o.streamInterceptor = interceptor
}
Expand Down

0 comments on commit 19572b9

Please sign in to comment.