

def send(self, payload):
    ' Send a payload over the tunnel\n            payload must be serializable, i.e. only built-in types such as:\n            dict, list, tuple, string, numbers, booleans, etc\n        '
    msg = {
        'cmd': 'TUNNEL_DATA',
        'value': payload,
        'tunnel_id': self.id,
    }
    try:
        self.links[msg.peer_node_id].send(msg)
    except:
        _log.analyze(self.rt_id, '+ TUNNEL FAILED', payload, peer_node_id=self.peer_node_id)

dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py CalvinTunnel.send/VarMisuse@45/129 `self`->`msg`