serving grpc on start.

This commit is contained in:
greg stone
2023-02-22 14:27:18 +00:00
parent e8dbf93a54
commit bde32c5a3d

View File

@@ -106,11 +106,15 @@ func Start(ctx context.Context) {
return
}
go server.Serve(unixSock)
if tcpSock, err = network.ListenTCP(&net.TCPAddr{Port: devicePort}); check(err) {
startupErrors <- err
return
}
go server.Serve(tcpSock)
isReady <- true
select {
@@ -137,4 +141,6 @@ func Shutdown() {
if dev != nil {
dev.Close()
}
server.Stop()
}