mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 02:44:02 +03:00
Rename full path in order to favor modules
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/9seconds/mtg/conntypes"
|
||||
"mtg/conntypes"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
+3
-3
@@ -5,9 +5,9 @@ import (
|
||||
"math/rand"
|
||||
"net"
|
||||
|
||||
"github.com/9seconds/mtg/conntypes"
|
||||
"github.com/9seconds/mtg/utils"
|
||||
"github.com/9seconds/mtg/wrappers/stream"
|
||||
"mtg/conntypes"
|
||||
"mtg/utils"
|
||||
"mtg/wrappers/stream"
|
||||
)
|
||||
|
||||
type baseTelegram struct {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package telegram
|
||||
|
||||
import "github.com/9seconds/mtg/conntypes"
|
||||
import "mtg/conntypes"
|
||||
|
||||
const (
|
||||
directV4DefaultIdx conntypes.DC = 1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package telegram
|
||||
|
||||
import "github.com/9seconds/mtg/conntypes"
|
||||
import "mtg/conntypes"
|
||||
|
||||
type Telegram interface {
|
||||
Dial(conntypes.DC, conntypes.ConnectionProtocol) (conntypes.StreamReadWriteCloser, error)
|
||||
|
||||
+2
-2
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/9seconds/mtg/conntypes"
|
||||
"github.com/9seconds/mtg/telegram/api"
|
||||
"mtg/conntypes"
|
||||
"mtg/telegram/api"
|
||||
)
|
||||
|
||||
const middleTelegramBackgroundUpdateEvery = time.Hour
|
||||
|
||||
Reference in New Issue
Block a user