Skip to content

Commit 1535515

Browse files
committed
chore: add license
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 359bb6b commit 1535515

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

tap-agent/src/tracker/extra_data.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
use std::time::Duration;
25

36
pub trait DefaultFromExtra<E> {

tap-agent/src/tracker/generic_tracker.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
use crate::agent::unaggregated_receipts::UnaggregatedReceipts;
25

36
use super::{

tap-agent/src/tracker/global_tracker.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
use std::ops::{AddAssign, SubAssign};
25

36
use crate::agent::unaggregated_receipts::UnaggregatedReceipts;

tap-agent/src/tracker/sender_fee_stats.rs

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
use std::{
25
collections::VecDeque,
36
time::{Duration, Instant, SystemTime, UNIX_EPOCH},
47
};
5-
// use tracing::error;
68

79
use crate::agent::unaggregated_receipts::UnaggregatedReceipts;
810

@@ -128,20 +130,6 @@ impl Default for BackoffInfo {
128130
}
129131
}
130132

131-
// impl SenderFeeStats {
132-
// pub(super) fn add_fee(&mut self, fee: u128) {
133-
// self.total_fee = self.total_fee.checked_add(fee).unwrap_or_else(|| {
134-
// // This should never happen, but if it does, we want to know about it.
135-
// error!(
136-
// "Overflow when adding receipt value {} to total fee {}. \
137-
// Setting total fee to u128::MAX.",
138-
// self.total_fee, fee
139-
// );
140-
// u128::MAX
141-
// });
142-
// }
143-
// }
144-
145133
impl AllocationStats<UnaggregatedReceipts> for SenderFeeStats {
146134
fn update(&mut self, v: UnaggregatedReceipts) {
147135
self.total_fee = v.value;

tap-agent/src/tracker/tracker_tests.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
use crate::{agent::unaggregated_receipts::UnaggregatedReceipts, tracker::SenderFeeTracker};
25

36
use super::SimpleFeeTracker;

0 commit comments

Comments
 (0)