Skip to content

Commit 6d1e884

Browse files
riptlripatel-fd
authored andcommitted
bundle: fix 'stream map corrupt' bug
1 parent 51ea97e commit 6d1e884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/waltz/grpc/fd_grpc_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ static fd_h2_stream_t *
538538
fd_grpc_h2_stream_query( fd_h2_conn_t * conn,
539539
uint stream_id ) {
540540
fd_grpc_client_t * client = conn->ctx;
541-
for( ulong i=0UL; i<FD_GRPC_CLIENT_MAX_STREAMS; i++ ) {
541+
for( ulong i=0UL; i<client->stream_cnt; i++ ) {
542542
if( client->stream_ids[ i ] == stream_id ) {
543543
return &client->streams[ i ]->s;
544544
}

0 commit comments

Comments
 (0)