no-std-net fix

more network refactor
This commit is contained in:
John Smith
2022-03-10 09:51:53 -05:00
parent 18a227717c
commit 909aa14fe2
17 changed files with 667 additions and 357 deletions

View File

@@ -197,6 +197,7 @@ impl ReceiptManager {
}
pub async fn startup(&self) -> Result<(), String> {
trace!("startup receipt manager");
// Retrieve config
/*
{
@@ -319,9 +320,7 @@ impl ReceiptManager {
callback,
)));
let mut inner = self.inner.lock();
inner
.receipts_by_nonce
.insert(receipt.get_nonce(), record);
inner.receipts_by_nonce.insert(receipt.get_nonce(), record);
}
pub fn record_single_shot_receipt(
@@ -334,9 +333,7 @@ impl ReceiptManager {
&receipt, expiration, eventual,
)));
let mut inner = self.inner.lock();
inner
.receipts_by_nonce
.insert(receipt.get_nonce(), record);
inner.receipts_by_nonce.insert(receipt.get_nonce(), record);
}
fn update_next_oldest_timestamp(inner: &mut ReceiptManagerInner) {