Code clean up

This commit is contained in:
NI
2022-04-15 18:42:16 +08:00
parent 0c3c4952fc
commit f884d7cf76
19 changed files with 46 additions and 66 deletions

View File

@@ -24,10 +24,6 @@ import (
"github.com/nirui/sshwifty/application/network"
)
var (
emptyTime = time.Time{}
)
type listener struct {
*net.TCPListener

View File

@@ -42,7 +42,7 @@ func (d dumpWrite) Write(b []byte) (int, error) {
// Errors
var (
ErrInvalidIPAddress = errors.New(
"Invalid IP address")
"invalid IP address")
)
// HandlerBuilder builds a HTTP handler
@@ -60,7 +60,6 @@ type CloseCallback func(error)
// Server represents a server
type Server struct {
logger log.Logger
cfg configuration.Common
shutdownWait *sync.WaitGroup
}