mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Fix spelling error, make narrower cast in dereference
This commit is contained in:
parent
500642b5ac
commit
2c0359f230
@ -43,7 +43,7 @@ export interface ChannelOptions {
|
||||
'grpc.primary_user_agent': string;
|
||||
'grpc.secondary_user_agent': string;
|
||||
'grpc.default_authority': string;
|
||||
'grpc.keealive_time_ms': number;
|
||||
'grpc.keepalive_time_ms': number;
|
||||
'grpc.keepalive_timeout_ms': number;
|
||||
[key: string]: string|number;
|
||||
}
|
||||
|
||||
@ -61,10 +61,10 @@ export class Http2SubChannel extends EventEmitter implements SubChannel {
|
||||
this.userAgent = userAgent;
|
||||
|
||||
if (channelArgs['grpc.keepalive_time_ms']) {
|
||||
this.keepaliveTimeMs = channelArgs['grpc.keepalive_time_ms'] as number;
|
||||
this.keepaliveTimeMs = channelArgs['grpc.keepalive_time_ms']!;
|
||||
}
|
||||
if (channelArgs['grpc.keepalive_timeout_ms']) {
|
||||
this.keepaliveTimeoutMs = channelArgs['grpc.keepalive_timeout_ms'] as number;
|
||||
this.keepaliveTimeoutMs = channelArgs['grpc.keepalive_timeout_ms']!;
|
||||
}
|
||||
this.keepaliveIntervalId = setTimeout(() => {}, 0);
|
||||
clearTimeout(this.keepaliveIntervalId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user