Skip to content

Commit

Permalink
chore(client): set keepalive as int
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKujawa committed Aug 21, 2020
1 parent 1956271 commit 7d2789a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/ZeebeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void AddKeepAliveToChannelOptions(List<ChannelOption> channelOptions, Ti
// GRPC_ARG_KEEPALIVE_TIME_MS
// This channel argument controls the period (in milliseconds) after which a keepalive ping is sent on the transport.
var actualKeepAlive = keepAlive.GetValueOrDefault(DefaultKeepAlive);
channelOptions.Add(new ChannelOption("grpc.keepalive_time_ms", actualKeepAlive.TotalMilliseconds.ToString()));
channelOptions.Add(new ChannelOption("grpc.keepalive_time_ms", (int) actualKeepAlive.TotalMilliseconds));
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 7d2789a

Please sign in to comment.