ソースを参照

reorder fields in Destination for faster hashing

Darien Raymond 7 年 前
コミット
b5b9a83823
1 ファイル変更2 行追加2 行削除
  1. 2 2
      common/net/destination.go

+ 2 - 2
common/net/destination.go

@@ -6,9 +6,9 @@ import (
 
 // Destination represents a network destination including address and protocol (tcp / udp).
 type Destination struct {
-	Network Network
-	Port    Port
 	Address Address
+	Port    Port
+	Network Network
 }
 
 // DestinationFromAddr generates a Destination from a net address.