LogStore::read takes a reference to namespace (#126)

This commit is contained in:
Lei, Huang
2022-08-02 12:59:08 +08:00
committed by GitHub
parent 868098d2b7
commit b5fcdae01d
4 changed files with 15 additions and 14 deletions

View File

@@ -102,7 +102,7 @@ impl<S: LogStore> Wal<S> {
pub async fn read_from_wal(&self, start_seq: SequenceNumber) -> Result<WriteBatchStream<'_>> {
let stream = self
.store
.read(self.namespace.clone(), start_seq)
.read(&self.namespace, start_seq)
.await
.map_err(BoxedError::new)
.context(error::ReadWalSnafu { name: self.name() })?