Update tracing invocation to be better manipulated
Co-Authored-By: Henry de Valence <hdevalence@hdevalence.ca>
This commit is contained in:
parent
73d777fe65
commit
4923e0d783
|
|
@ -65,10 +65,7 @@ impl Service<Request> for SeedService {
|
||||||
|
|
||||||
let response = match (req, &self.state) {
|
let response = match (req, &self.state) {
|
||||||
(Request::GetPeers, SeederState::Ready(address_book)) => {
|
(Request::GetPeers, SeederState::Ready(address_book)) => {
|
||||||
debug!(
|
debug!(address_book.len = address_book.lock().unwrap().len());
|
||||||
"address_book.len(): {:?}",
|
|
||||||
address_book.lock().unwrap().len()
|
|
||||||
);
|
|
||||||
info!("SeedService responding to GetPeers");
|
info!("SeedService responding to GetPeers");
|
||||||
Ok::<Response, Self::Error>(Response::Peers(
|
Ok::<Response, Self::Error>(Response::Peers(
|
||||||
address_book.lock().unwrap().peers().collect(),
|
address_book.lock().unwrap().peers().collect(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue