Skip to content

Commit 85db25b

Browse files
Fix import order in gossip.rs.
A new import will be added in the next commit.
1 parent 24c2468 commit 85db25b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lightning/src/routing/gossip.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,39 @@
1111
1212
use bitcoin::blockdata::constants::ChainHash;
1313

14+
use bitcoin::secp256k1;
1415
use bitcoin::secp256k1::constants::PUBLIC_KEY_SIZE;
15-
use bitcoin::secp256k1::{PublicKey, Verification};
1616
use bitcoin::secp256k1::Secp256k1;
17-
use bitcoin::secp256k1;
17+
use bitcoin::secp256k1::{PublicKey, Verification};
1818

1919
use bitcoin::hashes::sha256d::Hash as Sha256dHash;
2020
use bitcoin::hashes::Hash;
2121
use bitcoin::network::constants::Network;
2222

2323
use crate::events::{MessageSendEvent, MessageSendEventsProvider};
24-
use crate::ln::types::ChannelId;
25-
use crate::ln::features::{ChannelFeatures, NodeFeatures, InitFeatures};
26-
use crate::ln::msgs::{DecodeError, ErrorAction, Init, LightningError, RoutingMessageHandler, SocketAddress, MAX_VALUE_MSAT};
27-
use crate::ln::msgs::{ChannelAnnouncement, ChannelUpdate, NodeAnnouncement, GossipTimestampFilter};
28-
use crate::ln::msgs::{QueryChannelRange, ReplyChannelRange, QueryShortChannelIds, ReplyShortChannelIdsEnd};
24+
use crate::ln::features::{ChannelFeatures, InitFeatures, NodeFeatures};
2925
use crate::ln::msgs;
26+
use crate::ln::msgs::{ChannelAnnouncement, ChannelUpdate, GossipTimestampFilter, NodeAnnouncement};
27+
use crate::ln::msgs::{DecodeError, ErrorAction, Init, LightningError, RoutingMessageHandler, SocketAddress, MAX_VALUE_MSAT};
28+
use crate::ln::msgs::{QueryChannelRange, QueryShortChannelIds, ReplyChannelRange, ReplyShortChannelIdsEnd};
29+
use crate::ln::types::ChannelId;
3030
use crate::routing::utxo::{self, UtxoLookup, UtxoResolver};
31-
use crate::util::ser::{Readable, ReadableArgs, Writeable, Writer, MaybeReadable};
32-
use crate::util::logger::{Logger, Level};
31+
use crate::util::indexed_map::{Entry as IndexedMapEntry, IndexedMap};
32+
use crate::util::logger::{Level, Logger};
3333
use crate::util::scid_utils::{block_from_scid, scid_from_parts, MAX_SCID_BLOCK};
34+
use crate::util::ser::{MaybeReadable, Readable, ReadableArgs, Writeable, Writer};
3435
use crate::util::string::PrintableString;
35-
use crate::util::indexed_map::{IndexedMap, Entry as IndexedMapEntry};
3636

3737
use crate::io;
3838
use crate::io_extras::{copy, sink};
3939
use crate::prelude::*;
40-
use core::{cmp, fmt};
41-
use crate::sync::{RwLock, RwLockReadGuard, LockTestExt};
42-
#[cfg(feature = "std")]
43-
use core::sync::atomic::{AtomicUsize, Ordering};
4440
use crate::sync::Mutex;
41+
use crate::sync::{LockTestExt, RwLock, RwLockReadGuard};
4542
use core::ops::{Bound, Deref};
4643
use core::str::FromStr;
44+
#[cfg(feature = "std")]
45+
use core::sync::atomic::{AtomicUsize, Ordering};
46+
use core::{cmp, fmt};
4747

4848
#[cfg(feature = "std")]
4949
use std::time::{SystemTime, UNIX_EPOCH};

0 commit comments

Comments
 (0)