Просмотр исходного кода

reorder fields in Destination for faster hashing

Darien Raymond 7 лет назад
Родитель
Сommit
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.