Преглед на файлове

Changed a couple of vars to consts

Adam Pritchard преди 11 години
родител
ревизия
0f1e55fbc1
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 3 1
      psiphon/stats_collector.go
  2. 3 1
      psiphon/stats_test.go

+ 3 - 1
psiphon/stats_collector.go

@@ -36,7 +36,9 @@ import (
 
 // _CHANNEL_CAPACITY is the size of the channel that connections use to send stats
 // bundles to the collector/processor.
-var _CHANNEL_CAPACITY = 1000
+const (
+	_CHANNEL_CAPACITY = 1000
+)
 
 // Per-host/domain stats.
 // Note that the bytes we're counting are the ones going into the tunnel, so do

+ 3 - 1
psiphon/stats_test.go

@@ -31,7 +31,9 @@ import (
 	"github.com/stretchr/testify/suite"
 )
 
-var _SERVER_ID = "myserverid"
+const (
+	_SERVER_ID = "myserverid"
+)
 
 type StatsTestSuite struct {
 	suite.Suite