Conform stream_id to go-mplex

This commit is contained in:
mhchia
2019-08-28 21:43:34 +08:00
parent 9b60e1757d
commit d35b8ffc64
5 changed files with 55 additions and 46 deletions

View File

@ -41,7 +41,7 @@ class ID:
def __str__(self) -> str:
if FRIENDLY_IDS:
return self.to_string()[2:8]
return f"<peer.ID {self.to_string()[2:8]}>"
else:
return self.to_string()