diff --git a/proxy/config.go b/proxy/config.go index 34e0f7f..12f3d83 100644 --- a/proxy/config.go +++ b/proxy/config.go @@ -52,7 +52,6 @@ type Proxy struct { Debug bool `json:"debug"` Stratum Stratum `json:"stratum"` - } type Stratum struct { diff --git a/proxy/miner.go b/proxy/miner.go index 45c7a46..5a2e1a5 100644 --- a/proxy/miner.go +++ b/proxy/miner.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/yuriy0803/poolhash" + "github.com/yuriy0803/poolhash" "github.com/ethereum/go-ethereum/common" ) diff --git a/proxy/proxy.go b/proxy/proxy.go index a012e3a..0214b47 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -42,9 +42,9 @@ type Session struct { // Stratum sync.Mutex - conn net.Conn - login string - lastErr error + conn net.Conn + login string + lastErr error } func NewProxy(cfg *Config, backend *storage.RedisClient) *ProxyServer { diff --git a/proxy/stratum.go b/proxy/stratum.go index 7df8789..6c2932f 100644 --- a/proxy/stratum.go +++ b/proxy/stratum.go @@ -2,7 +2,7 @@ package proxy import ( "bufio" - "crypto/tls" + "crypto/tls" "encoding/json" "errors" "io" @@ -37,7 +37,7 @@ func (s *ProxyServer) ListenTCP() { conn.(*net.TCPConn).SetKeepAlive(true) } } - + if err != nil { log.Fatalf("Error: %v", err) }