File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,9 @@ class GrpcService {
171
171
case p2pErrorCodes . POOL_CLOSED :
172
172
code = status . ABORTED ;
173
173
break ;
174
+ case p2pErrorCodes . RESPONSE_TIMEOUT :
175
+ code = status . DEADLINE_EXCEEDED ;
176
+ break ;
174
177
}
175
178
176
179
// return a grpc error with the code if we've assigned one, otherwise pass along the caught error as UNKNOWN
Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ class Peer extends EventEmitter {
580
580
const request = PacketType [ parseInt ( packetId , 10 ) ] || packetId ;
581
581
const err = errors . RESPONSE_TIMEOUT ( request ) ;
582
582
this . emitError ( err . message ) ;
583
- entry . reject ( err . message ) ;
583
+ entry . reject ( err ) ;
584
584
await this . close ( DisconnectionReason . ResponseStalling , packetId ) ;
585
585
}
586
586
}
You can’t perform that action at this time.
0 commit comments