Преглед изворни кода

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.