chore: fix lint warnings (#330)

This commit is contained in:
Santiago Carmuega 2023-11-13 17:00:00 -03:00 committed by GitHub
parent 4d6a1fe344
commit fdbdcc3a4f
8 changed files with 139 additions and 109 deletions

View file

@ -131,7 +131,7 @@ impl<'a> RollBatch<'a> {
fn stage_append(&mut self, log: Log) {
let new_seq = self.2 + 1;
WalKV::stage_upsert(&self.0, DBInt(new_seq), DBSerde(log), &mut self.1);
WalKV::stage_upsert(self.0, DBInt(new_seq), DBSerde(log), &mut self.1);
self.2 = new_seq;
}
@ -175,7 +175,7 @@ impl Store {
hash: BlockHash,
body: BlockBody,
) -> Result<(), Error> {
let mut batch = RollBatch::new(&mut self.db, self.wal_seq);
let mut batch = RollBatch::new(&self.db, self.wal_seq);
batch.stage_append(Log::Apply(slot, hash, body));