From 85c38988f8588b95b4d307c3023d590b390e510f Mon Sep 17 00:00:00 2001 From: MuZhou233 Date: Fri, 19 Jul 2024 23:55:25 +0100 Subject: [PATCH] chore: fix lint --- client.go | 2 +- wrapper.go | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client.go b/client.go index f67e8ae..10eda22 100644 --- a/client.go +++ b/client.go @@ -120,7 +120,7 @@ func WithToken(ctx context.Context, token string) context.Context { func (c *LibrarianClient) RunBackgroundRefresh() { for { c.muToken.RLock() - resp, err := c.RefreshToken( // nolint:typecheck // false positive + resp, err := c.RefreshToken( WithToken(context.Background(), c.refreshToken), new(pb.RefreshTokenRequest), ) diff --git a/wrapper.go b/wrapper.go index 32882f4..bde36f0 100644 --- a/wrapper.go +++ b/wrapper.go @@ -35,10 +35,11 @@ type tokenInfo struct { func (s *wrapper) GetPorterInformation(ctx context.Context, req *pb.GetPorterInformationRequest) ( *pb.GetPorterInformationResponse, error) { return &pb.GetPorterInformationResponse{ - Name: s.Config.Name, - Version: s.Config.Version, - GlobalName: s.Config.GlobalName, - FeatureSummary: s.Config.FeatureSummary, + Name: s.Config.Name, + Version: s.Config.Version, + GlobalName: s.Config.GlobalName, + FeatureSummary: s.Config.FeatureSummary, + ContextJsonSchema: nil, }, nil } func (s *wrapper) EnablePorter(ctx context.Context, req *pb.EnablePorterRequest) (