Skip to content

Commit

Permalink
'proto3' (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Aug 26, 2024
1 parent a89d8ef commit 84c7e26
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
11 changes: 6 additions & 5 deletions agent/agentGrpc/agent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion agent/agentGrpc/agent.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
syntax = "proto3";

option go_package = "github.com/openziti/zrok/agent/agentGrpc";

service Agent {
Expand All @@ -8,5 +10,5 @@ message VersionRequest {
}

message VersionReply {
required string v = 1;
string v = 1;
}
2 changes: 1 addition & 1 deletion agent/grpcImpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ type agentGrpcImpl struct {
func (s *agentGrpcImpl) Version(_ context.Context, _ *agentGrpc.VersionRequest) (*agentGrpc.VersionReply, error) {
v := build.String()
logrus.Infof("responding to version inquiry with '%v'", v)
return &agentGrpc.VersionReply{V: &v}, nil
return &agentGrpc.VersionReply{V: v}, nil
}
2 changes: 1 addition & 1 deletion cmd/zrok/agentVersion.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ func (cmd *agentVersionCommand) run(_ *cobra.Command, _ []string) {
tui.Error("error getting agent version", err)
}

println(*v.V)
println(v.GetV())
}

0 comments on commit 84c7e26

Please # to comment.