From 9cf42c560b5014220a19a2ff9cae1e41792527c2 Mon Sep 17 00:00:00 2001 From: meejah Date: Fri, 12 Feb 2021 22:00:57 -0700 Subject: [PATCH] not sure we can hit this state at all --- src/wormhole_transit_relay/server_state.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/wormhole_transit_relay/server_state.py b/src/wormhole_transit_relay/server_state.py index b747965..949176e 100644 --- a/src/wormhole_transit_relay/server_state.py +++ b/src/wormhole_transit_relay/server_state.py @@ -572,17 +572,6 @@ class TransitServerState(object): else: self._mood = "jilted" - @_machine.output() - def _mood_happy_if_second(self): - """ - We disconnected second so we're only happy if we also connected - second. - """ - if self._first: - self._mood = "jilted" - else: - self._mood = "happy" - def _real_register_token_for_side(self, token, side): """ A client has connected and sent a valid version 1 or version 2 @@ -692,11 +681,6 @@ class TransitServerState(object): enter=done, outputs=[_mood_happy_if_first, _disconnect_partner, _unregister, _record_usage], ) -# relaying.upon( -# partner_connection_lost, -# enter=done, -# outputs=[_mood_happy_if_second, _disconnect, _unregister], # no _record_usage; other side will -# ) done.upon( connection_lost,