Skip to content

Commit a62f88a

Browse files
wip
1 parent a26d4d5 commit a62f88a

File tree

11 files changed

+619
-572
lines changed

11 files changed

+619
-572
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Seeds for failure cases proptest has generated in the past. It is
2+
# automatically read and these particular cases re-run before any
3+
# novel cases are generated.
4+
#
5+
# It is recommended to check this file in to source control so that
6+
# everyone who runs the test benefits from these saved cases.
7+
cc ab0cd6821e231b6b7d349c34efb5638759b8ac937167227f350f5fd8be85f8d7 # shrinks to url_str = "a://a@localhost"

lightning-liquidity/src/events.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use crate::lsps1;
2020
use crate::lsps2;
2121
use crate::lsps5;
2222
use crate::sync::{Arc, Mutex};
23+
2324
use alloc::collections::VecDeque;
2425
use alloc::vec::Vec;
2526

lightning-liquidity/src/lsps0/ser.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ use crate::lsps5::msgs::{
2828

2929
use crate::prelude::HashMap;
3030

31-
use chrono::DateTime;
3231
use lightning::ln::msgs::{DecodeError, LightningError};
3332
use lightning::ln::wire;
3433
use lightning::util::ser::{LengthLimitedRead, LengthReadable, WithoutLength};
@@ -242,13 +241,13 @@ impl LSPSDateTime {
242241
}
243242

244243
/// Returns the time in seconds since the unix epoch.
245-
pub fn abs_diff(&self, other: &Self) -> u64 {
244+
pub fn abs_diff(&self, other: Self) -> u64 {
246245
self.0.timestamp().abs_diff(other.0.timestamp())
247246
}
248247

249248
/// Returns the time in seconds since the unix epoch.
250249
pub fn new_from_duration_since_epoch(duration: Duration) -> Self {
251-
Self(DateTime::UNIX_EPOCH + duration)
250+
Self(chrono::DateTime::UNIX_EPOCH + duration)
252251
}
253252
}
254253

0 commit comments

Comments
 (0)