Commit 80fe23f7 authored by 神楽坂玲奈's avatar 神楽坂玲奈

test

parent ac506489
Pipeline #4847 passed with stages
in 1 minute and 8 seconds
...@@ -21,7 +21,6 @@ export class RouteWriter { ...@@ -21,7 +21,6 @@ export class RouteWriter {
} }
static setVia(toId: number, viaId: number) { static setVia(toId: number, viaId: number) {
console.log(toId, viaId);
this.via.set(toId, viaId); this.via.set(toId, viaId);
const to = routers.find(r => r.id === toId); const to = routers.find(r => r.id === toId);
const via = routers.find(r => r.id === viaId); const via = routers.find(r => r.id === viaId);
...@@ -36,7 +35,6 @@ export class RouteWriter { ...@@ -36,7 +35,6 @@ export class RouteWriter {
} }
static setPlan(table: number, toId: number) { static setPlan(table: number, toId: number) {
console.log(table, toId);
this.plan.set(table, toId); this.plan.set(table, toId);
if (toId === this.id) { if (toId === this.id) {
......
...@@ -10,7 +10,10 @@ export class Server { ...@@ -10,7 +10,10 @@ export class Server {
ack = 0; ack = 0;
onMessage(socket: Socket, message: DownloadMessage, self: PeerMessage) { onMessage(socket: Socket, message: DownloadMessage, self: PeerMessage) {
console.log(message);
if (message.seq && this.ack !== message.seq) { if (message.seq && this.ack !== message.seq) {
console.log("seq mismatch rejected");
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment