mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
fix typo
This commit is contained in:
@@ -128,7 +128,7 @@ func (tc *TCPClient) Run(ctx context.Context) error {
|
|||||||
if tc.router != nil {
|
if tc.router != nil {
|
||||||
tc.router.HandleInput(tc.config.Id, message)
|
tc.router.HandleInput(tc.config.Id, message)
|
||||||
} else {
|
} else {
|
||||||
slog.Error("tcp-client has not router", "id", tc.config.Id)
|
slog.Error("tcp-client has no router", "id", tc.config.Id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ func (ts *TCPServer) HandleClient(ctx context.Context, client net.Conn) {
|
|||||||
if ts.router != nil {
|
if ts.router != nil {
|
||||||
ts.router.HandleInput(ts.config.Id, message)
|
ts.router.HandleInput(ts.config.Id, message)
|
||||||
} else {
|
} else {
|
||||||
slog.Error("tcp-server has not router", "id", ts.config.Id)
|
slog.Error("tcp-server has no router", "id", ts.config.Id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ func (us *UDPServer) Run(ctx context.Context) error {
|
|||||||
if us.router != nil {
|
if us.router != nil {
|
||||||
us.router.HandleInput(us.config.Id, message)
|
us.router.HandleInput(us.config.Id, message)
|
||||||
} else {
|
} else {
|
||||||
slog.Error("tcp-server has not router", "id", us.config.Id)
|
slog.Error("tcp-server has no router", "id", us.config.Id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user