@@ -131,15 +131,14 @@ fn fuzz(input: FuzzInput) {
131131 }
132132
133133 JournalOperation :: Read { pos } => {
134- let reader = journal. reader ( ) . await ;
135- let bounds = reader. bounds ( ) ;
134+ let bounds = journal. bounds ( ) ;
136135 if bounds. contains ( pos) {
137- reader . read ( * pos) . await . unwrap ( ) ;
136+ journal . read ( * pos) . await . unwrap ( ) ;
138137 }
139138 }
140139
141140 JournalOperation :: ReadMany { positions } => {
142- let reader = journal. reader ( ) . await ;
141+ let reader = journal. reader ( ) ;
143142 let bounds = reader. bounds ( ) ;
144143 // Map fuzz positions into valid, sorted, deduplicated positions
145144 let mut mapped: Vec < u64 > = positions
@@ -166,7 +165,7 @@ fn fuzz(input: FuzzInput) {
166165 }
167166
168167 JournalOperation :: Size => {
169- let size = journal. size ( ) . await ;
168+ let size = journal. size ( ) ;
170169 assert_eq ! ( journal_size, size, "unexpected size" ) ;
171170 }
172171
@@ -179,26 +178,25 @@ fn fuzz(input: FuzzInput) {
179178 journal. rewind ( * size) . await . unwrap ( ) ;
180179 journal. sync ( ) . await . unwrap ( ) ;
181180 journal_size = * size;
182- oldest_retained_pos = journal. reader ( ) . await . bounds ( ) . start ;
181+ oldest_retained_pos = journal. bounds ( ) . start ;
183182 }
184183 }
185184
186185 JournalOperation :: Bounds => {
187- let _bounds = journal. reader ( ) . await . bounds ( ) ;
186+ let _bounds = journal. bounds ( ) ;
188187 }
189188
190189 JournalOperation :: Prune { min_pos } => {
191190 if * min_pos <= journal_size {
192191 journal. prune ( * min_pos) . await . unwrap ( ) ;
193- oldest_retained_pos = journal. reader ( ) . await . bounds ( ) . start ;
192+ oldest_retained_pos = journal. bounds ( ) . start ;
194193 }
195194 }
196195
197196 JournalOperation :: Replay { buffer, start_pos } => {
198- let reader = journal. reader ( ) . await ;
199- let bounds = reader. bounds ( ) ;
197+ let bounds = journal. bounds ( ) ;
200198 let start_pos = bounds. start + ( * start_pos % ( bounds. end - bounds. start + 1 ) ) ;
201- let replay = reader . replay ( NZUsize ! ( * buffer) , start_pos) . await ;
199+ let replay = journal . replay ( NZUsize ! ( * buffer) , start_pos) . await ;
202200
203201 match replay {
204202 Ok ( stream) => {
@@ -229,8 +227,8 @@ fn fuzz(input: FuzzInput) {
229227 . unwrap ( ) ;
230228 restarts += 1 ;
231229 // Reset tracking variables to match recovered state
232- journal_size = journal. size ( ) . await ;
233- oldest_retained_pos = journal. reader ( ) . await . bounds ( ) . start ;
230+ journal_size = journal. size ( ) ;
231+ oldest_retained_pos = journal. bounds ( ) . start ;
234232 }
235233
236234 JournalOperation :: Destroy => {
@@ -293,12 +291,12 @@ fn fuzz(input: FuzzInput) {
293291 let new_size = journal. rewind_to ( |item| * item == target) . await . unwrap ( ) ;
294292 journal. sync ( ) . await . unwrap ( ) ;
295293 journal_size = new_size;
296- oldest_retained_pos = journal. reader ( ) . await . bounds ( ) . start ;
294+ oldest_retained_pos = journal. reader ( ) . bounds ( ) . start ;
297295 }
298296 }
299297
300298 JournalOperation :: TryReadSync { pos } => {
301- let reader = journal. reader ( ) . await ;
299+ let reader = journal. reader ( ) ;
302300 let bounds = reader. bounds ( ) ;
303301 if bounds. contains ( pos) {
304302 // Cross-check: sync result must match async result
@@ -310,7 +308,7 @@ fn fuzz(input: FuzzInput) {
310308 }
311309
312310 JournalOperation :: PruningBoundary => {
313- let boundary = journal. pruning_boundary ( ) . await ;
311+ let boundary = journal. pruning_boundary ( ) ;
314312 assert_eq ! ( boundary, oldest_retained_pos) ;
315313 }
316314
@@ -328,8 +326,8 @@ fn fuzz(input: FuzzInput) {
328326 . await
329327 . unwrap ( ) ;
330328 restarts += 1 ;
331- journal_size = journal. size ( ) . await ;
332- oldest_retained_pos = journal. reader ( ) . await . bounds ( ) . start ;
329+ journal_size = journal. size ( ) ;
330+ oldest_retained_pos = journal. reader ( ) . bounds ( ) . start ;
333331 }
334332 }
335333 }
0 commit comments