瀏覽代碼

why did i make accessors?

tarfeef101 6 年之前
父節點
當前提交
b1a0870d8b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -27,7 +27,7 @@ pack, addr = sock.recvfrom(4096)
 circuit = unpacket(pack)[1]
 
 # send shit out to emulator
-for i in circuit.getlinks():
+for i in circuit.getlink():
     sock.sendto(hpacket(rid, i.getlid()).package(), (haddr, hport))
 
 # stores neighbours, topology db, and graph