Skip to content

Commit

Permalink
Start handling inbound requests again
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed May 24, 2021
1 parent 353f8a8 commit 3f519ff
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions zebrad/src/components/inbound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,18 +224,11 @@ impl Service<zn::Request> for Inbound {
Poll::Ready(result)
}

#[allow(dead_code, unused_variables, unreachable_code)]
#[instrument(name = "inbound", skip(self, req))]
fn call(&mut self, req: zn::Request) -> Self::Future {
// Just drop all inbound requests for now
info!(%req,
"ignoring all requests from remote peers"
);
return async { Ok(zn::Response::Nil) }.boxed();

// Drop early requests to avoid load shedding during network setup
if !matches!(self.network_setup, Setup::Initialized { .. }) {
info!(%req,
debug!(%req,
"ignoring request from remote peer during network setup"
);
trace!(?req, "full inbound request");
Expand Down

0 comments on commit 3f519ff

Please sign in to comment.