Simplify stream_less
This commit is contained in:
parent
816ad2102f
commit
c2434dfbbc
|
@ -52,11 +52,7 @@ static int stream_less(const void *lhsx, const void *rhsx) {
|
|||
return lhs->seq < rhs->seq;
|
||||
}
|
||||
|
||||
if (lhs->cycle < rhs->cycle) {
|
||||
return rhs->cycle - lhs->cycle <= NGHTTP2_MAX_CYCLE_DISTANCE;
|
||||
}
|
||||
|
||||
return lhs->cycle - rhs->cycle > NGHTTP2_MAX_CYCLE_DISTANCE;
|
||||
}
|
||||
|
||||
void nghttp2_stream_init(nghttp2_stream *stream, int32_t stream_id,
|
||||
|
|
Loading…
Reference in New Issue