mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-03 00:41:55 +03:00
Rename EventTelegramTraffic back to EventTraffic
This commit is contained in:
+3
-3
@@ -34,18 +34,18 @@ func (e EventConnectedToDC) Timestamp() time.Time {
|
||||
return e.CreatedAt
|
||||
}
|
||||
|
||||
type EventTelegramTraffic struct {
|
||||
type EventTraffic struct {
|
||||
CreatedAt time.Time
|
||||
ConnID string
|
||||
Traffic uint
|
||||
IsRead bool
|
||||
}
|
||||
|
||||
func (e EventTelegramTraffic) StreamID() string {
|
||||
func (e EventTraffic) StreamID() string {
|
||||
return e.ConnID
|
||||
}
|
||||
|
||||
func (e EventTelegramTraffic) Timestamp() time.Time {
|
||||
func (e EventTraffic) Timestamp() time.Time {
|
||||
return e.CreatedAt
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user