Skip to content

Commit

Permalink
reuse in replay
Browse files Browse the repository at this point in the history
  • Loading branch information
wenym1 committed Jan 15, 2025
1 parent 17e16c0 commit 9ad0c6b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/storage/hummock_test/src/bin/replay/replay_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

use std::ops::Bound;

use bytes::Bytes;
use futures::stream::BoxStream;
use futures::{Stream, StreamExt, TryStreamExt};
use futures_async_stream::try_stream;
Expand Down Expand Up @@ -251,11 +250,10 @@ impl LocalReplayRead for LocalReplayImpl {
) -> Result<Option<TracedBytes>> {
Ok(self
.0
.on_key_value(TableKey(key.into()), read_options.into(), |_, value| {
Ok(TracedBytes::from(Bytes::copy_from_slice(value)))
})
.get(TableKey(key.into()), read_options.into())
.await
.unwrap())
.unwrap()
.map(TracedBytes::from))
}
}

Expand Down

0 comments on commit 9ad0c6b

Please sign in to comment.