From b5b9a83823270707c8e6ab8b50910e1c73ee5262 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 16 Mar 2018 10:13:10 +0700 Subject: [PATCH] reorder fields in Destination for faster hashing --- common/net/destination.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/net/destination.go b/common/net/destination.go index f1166f95f..8cbfbccd1 100644 --- a/common/net/destination.go +++ b/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.