Skip to content

Commit d4f84df

Browse files
authored
Merge pull request pingcap#128 from wjhuang2016/master
kvraft: fix try_recv() which causes panic
2 parents 5f8a821 + d8758f6 commit d4f84df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dss/src/kvraft/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ fn generic_test_linearizability(
486486

487487
if partitions {
488488
debug!("wait for partitioner");
489-
partitioner_rx.try_recv().unwrap();
489+
partitioner_rx.recv().unwrap();
490490
// reconnect network and submit a request. A client may
491491
// have submitted a request in a minority. That request
492492
// won't return until that server discovers a new term

0 commit comments

Comments
 (0)