diff options
| author | Ilya Kryuchkov <42733472+kr-ilya@users.noreply.github.com> | 2026-01-05 07:54:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-05 07:54:56 +0300 |
| commit | 6041d10e3d5d8b0021dd596bdee8f0064a495f80 (patch) | |
| tree | 897ac55d8389dfea859e6071d08c56f97e843a09 /web/websocket/notifier.go | |
| parent | 4800f8fb706a092a38255ee70904227238b2a6f6 (diff) | |
Refactor code and fix linter warnings (#3627)
* refactor: use any instead of empty interface
* refactor: code cleanup
Diffstat (limited to 'web/websocket/notifier.go')
| -rw-r--r-- | web/websocket/notifier.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/websocket/notifier.go b/web/websocket/notifier.go index 416adaff..91e52c7c 100644 --- a/web/websocket/notifier.go +++ b/web/websocket/notifier.go @@ -25,7 +25,7 @@ func GetHub() *Hub { } // BroadcastStatus broadcasts server status update to all connected clients -func BroadcastStatus(status interface{}) { +func BroadcastStatus(status any) { hub := GetHub() if hub != nil { hub.Broadcast(MessageTypeStatus, status) @@ -33,7 +33,7 @@ func BroadcastStatus(status interface{}) { } // BroadcastTraffic broadcasts traffic statistics update to all connected clients -func BroadcastTraffic(traffic interface{}) { +func BroadcastTraffic(traffic any) { hub := GetHub() if hub != nil { hub.Broadcast(MessageTypeTraffic, traffic) @@ -41,7 +41,7 @@ func BroadcastTraffic(traffic interface{}) { } // BroadcastInbounds broadcasts inbounds list update to all connected clients -func BroadcastInbounds(inbounds interface{}) { +func BroadcastInbounds(inbounds any) { hub := GetHub() if hub != nil { hub.Broadcast(MessageTypeInbounds, inbounds) |
