reverted introducing stream
This commit is contained in:
+3
-3
@@ -1,10 +1,10 @@
|
||||
|
||||
import time
|
||||
|
||||
class MsgContainer:
|
||||
def __init__(self, name: str, timestamp: float = 0, data = b''):
|
||||
def __init__(self, data: bytes, name: str = "default", timestamp=time.time()):
|
||||
self.timestamp : float = timestamp
|
||||
self.name : str= name
|
||||
self.data: bytes = data
|
||||
self.name : str = name
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.timestamp}:{self.name}:{self.data}"
|
||||
|
||||
Reference in New Issue
Block a user