We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92172bd commit b6f1f9cCopy full SHA for b6f1f9c
1 file changed
crates/modules/meta/src/module.rs
@@ -239,9 +239,10 @@ impl MetaModule {
239
approved_peer: PeerPubkey,
240
) -> DbTxResult<Vec<CItemEffect>, Whatever> {
241
// Look up the value that the approved peer voted for
242
- let votes_tbl = dbtx.open_table(&tables::key_value_votes::TABLE)?;
243
-
244
- match votes_tbl.get(&(key, approved_peer))? {
+ match dbtx
+ .open_table(&tables::key_value_votes::TABLE)?
+ .get(&(key, approved_peer))?
245
+ {
246
Some(approved_value) => {
247
// Cast our vote for the same value as the approved peer
248
let value = approved_value.value();
0 commit comments