Explorar o código

reorder fields in Destination for faster hashing

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
b5b9a83823
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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.