refactor: init log

This commit is contained in:
2026-04-04 20:35:41 +03:00
parent 4177c00e75
commit 02f6bb6813
5 changed files with 21 additions and 31 deletions
-21
View File
@@ -1,25 +1,4 @@
package main
import (
"log"
"net"
"github.com/lorsanstand/HomeOps-Hub/api/gen/homeops"
grpcserver "github.com/lorsanstand/HomeOps-Hub/internal/hub/grpc"
"google.golang.org/grpc"
)
func main() {
lis, err := net.Listen("tcp", ":6756")
if err != nil {
return
}
grpcServer := grpc.NewServer()
srv := &grpcserver.Server{}
homeops.RegisterHubServer(grpcServer, srv)
log.Println("Start serve")
grpcServer.Serve(lis)
}