浏览代码

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.