general: snapshot

This commit is contained in:
k
2024-07-20 23:13:41 +02:00
parent d8a5b4a2e6
commit a145b35ad1
100 changed files with 5402 additions and 2967 deletions

View File

@@ -1,13 +1,13 @@
use super::WAmount;
use super::Amount;
#[derive(Default, Debug)]
pub struct SentData {
pub volume: WAmount,
pub volume: Amount,
pub count: u32,
}
impl SentData {
pub fn send(&mut self, amount: WAmount) {
pub fn send(&mut self, amount: Amount) {
self.volume += amount;
self.count += 1;
}