From 2dcfb07ba1fc7794dd3bd4ad343238676f85433a Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 2 Mar 2017 23:59:45 -0800 Subject: [PATCH] Receive does not need access to Key --- src/wormhole/_boss.py | 2 +- src/wormhole/_receive.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wormhole/_boss.py b/src/wormhole/_boss.py index 3e1a843..709fd62 100644 --- a/src/wormhole/_boss.py +++ b/src/wormhole/_boss.py @@ -53,7 +53,7 @@ class Boss(object): self._S.wire(self._M) self._O.wire(self._K, self._R) self._K.wire(self, self._M, self._R) - self._R.wire(self, self._K, self._S) + self._R.wire(self, self._S) self._RC.wire(self, self._N, self._M, self._C, self._NL, self._T) self._NL.wire(self._RC, self._C) self._C.wire(self, self._RC, self._NL) diff --git a/src/wormhole/_receive.py b/src/wormhole/_receive.py index 83dc92a..389c0f4 100644 --- a/src/wormhole/_receive.py +++ b/src/wormhole/_receive.py @@ -18,9 +18,8 @@ class Receive(object): def __attrs_post_init__(self): self._key = None - def wire(self, boss, key, send): + def wire(self, boss, send): self._B = _interfaces.IBoss(boss) - self._K = _interfaces.IKey(key) self._S = _interfaces.ISend(send) @m.state(initial=True)