Rename EventTelegramTraffic back to EventTraffic

This commit is contained in:
9seconds
2021-03-28 21:43:25 +03:00
parent bc2bd4510a
commit db8614999a
14 changed files with 25 additions and 25 deletions
+3 -3
View File
@@ -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
}