@@ -36,7 +36,7 @@ import (
3636/*****************************************************************************************************************/
3737
3838const (
39- serviceName = "storage "
39+ serviceName = "nova "
4040)
4141
4242/*****************************************************************************************************************/
@@ -76,7 +76,7 @@ func main() {
7676 s := grpc .NewServer ()
7777
7878 // Register our Store service:
79- path , handler := storev1connect .NewStorageServiceHandler (
79+ storePath , storeHandler := storev1connect .NewStorageServiceHandler (
8080 storage .NewStorageServer (app , client ),
8181 )
8282
@@ -90,8 +90,8 @@ func main() {
9090
9191 mux := http .NewServeMux ()
9292
93- // Register our service with the gRPC server:
94- mux .Handle (path , handler )
93+ // Register our store service with the gRPC server:
94+ mux .Handle (storePath , storeHandler )
9595
9696 // Register reflection service on gRPC server:
9797 mux .Handle (grpcreflect .NewHandlerV1 (reflector ))
@@ -104,7 +104,7 @@ func main() {
104104
105105 // Start gRPC http server h2c handler - run in a go function so we can better handle SIGTERM:
106106 go func () {
107- log .Info ().Msgf ("Server running on %v%s " , fmt .Sprintf ("http://%s:%d" , config .Host , config .Port ), path )
107+ log .Info ().Msgf ("Server running on %v" , fmt .Sprintf ("http://%s:%d" , config .Host , config .Port ))
108108
109109 err := http .ListenAndServe (
110110 fmt .Sprintf ("%s:%d" , config .Host , config .Port ),
0 commit comments