@@ -135,28 +135,9 @@ public override AsyncUnaryCall<TResponse> AsyncUnaryCall<TRequest, TResponse>(TR
135
135
}
136
136
}
137
137
138
- /// <summary>
139
- /// Adds keepAlive options to the channel options.
140
- /// </summary>
141
- /// <param name="channelOptions">the current existing channel options.</param>
142
- private void AddKeepAliveToChannelOptions ( List < ChannelOption > channelOptions , TimeSpan ? keepAlive )
143
- {
144
- // GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS
145
- // This channel argument if set to 1 (0 : false; 1 : true), allows keepalive pings to be sent even if there are no calls in flight.
146
- // channelOptions.Add(new ChannelOption("grpc.keepalive_permit_without_calls", "1"));
147
- // this will increase load on the system and also increase used resources
148
- // we should prefer idleTimeout setting
149
- // https://stackoverflow.com/questions/57930529/grpc-connection-use-keepalive-or-idletimeout
150
-
151
- // GRPC_ARG_KEEPALIVE_TIME_MS
152
- // This channel argument controls the period (in milliseconds) after which a keepalive ping is sent on the transport.
153
- var actualKeepAlive = keepAlive . GetValueOrDefault ( DefaultKeepAlive ) ;
154
- channelOptions . Add ( new ChannelOption ( "grpc.keepalive_time_ms" , ( int ) actualKeepAlive . TotalMilliseconds ) ) ;
155
- }
156
-
157
- ////////////////////////////////////////////////////////////////////////
158
- ///////////////////////////// JOBS /////////////////////////////////////
159
- ////////////////////////////////////////////////////////////////////////
138
+ ////////////////////////////////////////////////////////////////////////
139
+ ///////////////////////////// JOBS /////////////////////////////////////
140
+ ////////////////////////////////////////////////////////////////////////
160
141
161
142
public IJobWorkerBuilderStep1 NewWorker ( )
162
143
{
0 commit comments