Receive does not need access to Key

This commit is contained in:
Brian Warner 2017-03-02 23:59:45 -08:00
parent db7b24086f
commit 2dcfb07ba1
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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)