Selaa lähdekoodia

tidy up consts

Chris Bannister 10 vuotta sitten
vanhempi
commit
1bd96c7e03
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      conn.go

+ 5 - 3
conn.go

@@ -21,9 +21,11 @@ import (
 	"time"
 	"time"
 )
 )
 
 
-const defaultFrameSize = 4096
-const flagResponse = 0x80
-const maskVersion = 0x7F
+const (
+	defaultFrameSize = 4096
+	flagResponse     = 0x80
+	maskVersion      = 0x7F
+)
 
 
 //JoinHostPort is a utility to return a address string that can be used
 //JoinHostPort is a utility to return a address string that can be used
 //gocql.Conn to form a connection with a host.
 //gocql.Conn to form a connection with a host.