Browse Source

A bit of cleanup in network.py

Ian Goldberg 4 years ago
parent
commit
be7f1fe974
1 changed files with 2 additions and 4 deletions
  1. 2 4
      network.py

+ 2 - 4
network.py

@@ -258,9 +258,6 @@ class ClientConnection(Connection):
         self.perfstats.bytes_received += msgsize
         self.receivedfromserver(netmsg)
 
-    #def received(self, netmsg):
-        #print("received", netmsg, "from server")
-
 
 class ServerConnection(Connection):
     """The parent class of server-side network connections."""
@@ -325,7 +322,8 @@ if __name__ == '__main__':
     thenetwork.printservers()
     print("in main", a)
 
-    conn = thenetwork.connect("hello world client", a)
+    perfstats = PerfStats(EntType.NONE)
+    conn = thenetwork.connect("hello world client", a, perfstats)
     conn.sendmsg(StringNetMsg("hi"))
     conn.close()