From f328b5f5d3f2c61a0621d25b9b59157fe38a07a7 Mon Sep 17 00:00:00 2001 From: David Palm Date: Mon, 29 Mar 2021 22:13:14 +0200 Subject: [PATCH] =?UTF-8?q?No=20use=20denying=20"Earth"=20=E2=80=93=20they?= =?UTF-8?q?=20renamed=20Send=20Close=20frame=20with=20reason=20when=20the?= =?UTF-8?q?=20remote=20missed=20a=20heartbeat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/node/connector.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/src/node/connector.rs b/backend/src/node/connector.rs index d1aa5fd..fc71a19 100644 --- a/backend/src/node/connector.rs +++ b/backend/src/node/connector.rs @@ -90,6 +90,7 @@ impl NodeConnector { // check client heartbeats if Instant::now().duration_since(act.hb) > CLIENT_TIMEOUT { // stop actor + ctx.close(Some(CloseReason { code: ws::CloseCode::Abnormal, description: Some("Missed heartbeat".into())})); ctx.stop(); } }); @@ -113,11 +114,6 @@ impl NodeConnector { match &*node.chain { "Kusama CC3" => node.chain = "Kusama".into(), "Polkadot CC1" => node.chain = "Polkadot".into(), - "Earth" => { - // Temp, there is too many of them - ctx.stop(); - return; - }, _ => () }