This commit is contained in:
Michael Quigley 2024-08-23 12:41:13 -04:00
parent c0a5afc6f8
commit d8c9681da1
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -4,13 +4,15 @@ import (
"context" "context"
"github.com/openziti/zrok/agent/agentGrpc" "github.com/openziti/zrok/agent/agentGrpc"
"github.com/openziti/zrok/build" "github.com/openziti/zrok/build"
"github.com/sirupsen/logrus"
) )
type agentGrpcImpl struct { type agentGrpcImpl struct {
agentGrpc.UnimplementedAgentServer agentGrpc.UnimplementedAgentServer
} }
func (s *agentGrpcImpl) Version(ctx context.Context, req *agentGrpc.VersionRequest) (*agentGrpc.VersionReply, error) { func (s *agentGrpcImpl) Version(_ context.Context, _ *agentGrpc.VersionRequest) (*agentGrpc.VersionReply, error) {
v := build.String() v := build.String()
logrus.Infof("responding to version inquiry with '%v'", v)
return &agentGrpc.VersionReply{V: &v}, nil return &agentGrpc.VersionReply{V: &v}, nil
} }