Add new stats metric

This commit is contained in:
9seconds
2019-10-08 11:55:57 +03:00
parent d44474012a
commit 6c7edfb7db
21 changed files with 477 additions and 510 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func (c *connection) write(packet conntypes.Packet) error {
func (c *connection) shutdown() {
c.shutdownOnce.Do(func() {
close(c.done)
c.hub.channelBrokenSockets <- c.id
c.hub.channelBrokenSockets <- c.id
})
}
-1
View File
@@ -2,7 +2,6 @@ package hub
import (
"context"
"errors"
"time"
"github.com/9seconds/mtg/conntypes"