forked from External/ergo
server: Remove useless comments, make idle/quit function layouts nicer
This commit is contained in:
parent
fb63691c8b
commit
9fe7c143c8
2 changed files with 27 additions and 33 deletions
|
|
@ -100,7 +100,6 @@ type Server struct {
|
|||
ctime time.Time
|
||||
currentOpers map[*Client]bool
|
||||
dlines *DLineManager
|
||||
idle chan *Client
|
||||
isupport *ISupportList
|
||||
klines *KLineManager
|
||||
limits Limits
|
||||
|
|
@ -208,7 +207,6 @@ func NewServer(configFilename string, config *Config, logger *logger.Manager) (*
|
|||
connectionThrottle: connectionThrottle,
|
||||
ctime: time.Now(),
|
||||
currentOpers: make(map[*Client]bool),
|
||||
idle: make(chan *Client),
|
||||
limits: Limits{
|
||||
AwayLen: int(config.Limits.AwayLen),
|
||||
ChannelLen: int(config.Limits.ChannelLen),
|
||||
|
|
@ -483,9 +481,6 @@ func (server *Server) Run() {
|
|||
go NewClient(server, conn.Conn, conn.IsTLS)
|
||||
continue
|
||||
}
|
||||
|
||||
case client := <-server.idle:
|
||||
client.Idle()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue