]> Cypherpunks.ru repositories - govpn.git/commitdiff
Simple types without useless optimization
authorSergey Matveev <stargrave@stargrave.org>
Thu, 8 Dec 2016 20:39:01 +0000 (23:39 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 8 Dec 2016 20:39:02 +0000 (23:39 +0300)
Protocol type is used only in few places, so no need in extra memory
space optimization -- keep code simple.

src/cypherpunks.ru/govpn/client/client.go

index 093251dbaa8781416a1f9cd9b049bd40af081d5b..e722a7fc54ab7321bce5805512f69cb3d8e496ff 100644 (file)
@@ -30,7 +30,7 @@ import (
        "cypherpunks.ru/govpn"
 )
 
-type Protocol uint8
+type Protocol int
 
 const (
        ProtocolUDP Protocol = iota