From f72adc7a00baf3d3f7d1790ed8ddab026b10880e Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 9 Jan 2022 11:16:17 +0000 Subject: [PATCH] set defined by set() not {} --- bridge_master.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridge_master.py b/bridge_master.py index 7d1148d..26dfb3e 100644 --- a/bridge_master.py +++ b/bridge_master.py @@ -2097,7 +2097,7 @@ class routerHBP(HBSYSTEM): _data_call = True self.STATUS[_slot]['packets'] = 0 - self.STATUS[_slot]['crcs'] = [] + self.STATUS[_slot]['crcs'] = set() if _dtype_vseq == 3: logger.info('(%s) *UNIT CSBK* STREAM ID: %s SUB: %s (%s) PEER: %s (%s) DST_ID %s (%s), TS %s', \ @@ -2197,7 +2197,7 @@ class routerHBP(HBSYSTEM): if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']): self.STATUS[_slot]['packets'] = 0 - self.STATUS[_slot]['crcs'] = [] + self.STATUS[_slot]['crcs'] = set() self.STATUS[_slot]['_stopTgAnnounce'] = False @@ -2347,7 +2347,7 @@ class routerHBP(HBSYSTEM): if (_stream_id != self.STATUS[_slot]['RX_STREAM_ID']): self.STATUS[_slot]['packets'] = 0 - self.STATUS[_slot]['crcs'] = [] + self.STATUS[_slot]['crcs'] = set() if (self.STATUS[_slot]['RX_TYPE'] != HBPF_SLT_VTERM) and (pkt_time < (self.STATUS[_slot]['RX_TIME'] + STREAM_TO)) and (_rf_src != self.STATUS[_slot]['RX_RFS']): logger.warning('(%s) Packet received with STREAM ID: %s SUB: %s PEER: %s TGID %s, SLOT %s collided with existing call', self._system, int_id(_stream_id), int_id(_rf_src), int_id(_peer_id), int_id(_dst_id), _slot)