Skip to content

Commit

Permalink
Minor fixes and change package name for proto file for info service
Browse files Browse the repository at this point in the history
Signed-off-by: Hitanshu Mehta <[email protected]>
  • Loading branch information
hitanshu-mehta committed Jul 1, 2021
1 parent a98fa08 commit 03baf00
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 102 deletions.
4 changes: 2 additions & 2 deletions pkg/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func RegisterInfoServer(infoSrv infopb.InfoServer) func(*grpc.Server) {
}
}

func (srv *InfoServer) Info(ctx context.Context, req *infopb.InfoReq) (*infopb.InfoResp, error) {
func (srv *InfoServer) Info(ctx context.Context, req *infopb.InfoRequest) (*infopb.InfoResponse, error) {

if srv.getStoreInfo == nil {
srv.getStoreInfo = func() *infopb.StoreInfo { return nil }
Expand All @@ -73,7 +73,7 @@ func (srv *InfoServer) Info(ctx context.Context, req *infopb.InfoReq) (*infopb.I
srv.getMetricMetadataInfo = func() *infopb.MetricMetadataInfo { return nil }
}

resp := &infopb.InfoResp{
resp := &infopb.InfoResponse{
LabelSets: srv.getLabelSet(),
ComponentType: srv.component,
Store: srv.getStoreInfo(),
Expand Down
175 changes: 88 additions & 87 deletions pkg/info/infopb/rpc.pb.go

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

Loading

0 comments on commit 03baf00

Please sign in to comment.