diff --git a/sinks/adsb-ws/Makefile b/sinks/adsb-ws/Makefile index 49eef4f..d616fe9 100644 --- a/sinks/adsb-ws/Makefile +++ b/sinks/adsb-ws/Makefile @@ -5,3 +5,6 @@ adsb-ws: *.go clean: rm -f adsb-ws + +fmt: + gofmt -w . diff --git a/sinks/adsb-ws/hub.go b/sinks/adsb-ws/hub.go index dadcc8f..1e2f0af 100644 --- a/sinks/adsb-ws/hub.go +++ b/sinks/adsb-ws/hub.go @@ -2,9 +2,9 @@ package main type hub struct { connections map[*connection]bool - broadcast chan []byte - register chan *connection - unregister chan *connection + broadcast chan []byte + register chan *connection + unregister chan *connection } var h = hub{ diff --git a/sinks/adsb-ws/stream.go b/sinks/adsb-ws/stream.go index 241495e..02f75bf 100644 --- a/sinks/adsb-ws/stream.go +++ b/sinks/adsb-ws/stream.go @@ -8,7 +8,7 @@ import ( ) type connection struct { - ws *websocket.Conn + ws *websocket.Conn send chan []byte }