building locally

main
KeeganForelight 2 years ago
parent bf2307de76
commit 4957548338

@ -4,6 +4,7 @@ import (
"fmt"
"net"
"context"
"time"
"google.golang.org/grpc"
pb "FRMS/internal/pkg/grpc"
)
@ -31,6 +32,8 @@ type coordinatorServer struct {
}
func (s *coordinatorServer) PingHandler(ctx context.Context, ping *pb.PingRequest) (*pb.PingResponse, error) {
now := time.Now()
fmt.Printf("Ping from Central server recieved at time %v", now)
return &pb.PingResponse{Id: s.id}, nil
}

Binary file not shown.
Loading…
Cancel
Save