Add telegram api

This commit is contained in:
9seconds
2019-09-09 10:25:38 +03:00
parent 2918ed11e5
commit 3816dbf5b1
9 changed files with 203 additions and 26 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import (
"go.uber.org/zap"
"github.com/9seconds/mtg/config"
"github.com/9seconds/mtg/conntypes"
"github.com/9seconds/mtg/protocol"
"github.com/9seconds/mtg/stats"
"github.com/9seconds/mtg/telegram"
@@ -53,7 +54,7 @@ func (p *Proxy) accept(conn net.Conn) {
}
}()
connID := wrappers.NewConnID()
connID := conntypes.NewConnID()
logger := p.Logger.With("connection_id", connID)
if err := utils.InitTCP(conn); err != nil {