Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f2a45a

Browse files
committed
chore: make fmt
1 parent291fab9 commit8f2a45a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

‎coderd/aibridgedserver/aibridgedserver.go‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ var (
3030
ErrNoMCPConfigFound=xerrors.New("no MCP config found")
3131
)
3232

33-
var_ proto.DRPCAuthorizerServer=&Server{}
34-
var_ proto.DRPCMCPConfiguratorServer=&Server{}
35-
var_ proto.DRPCRecorderServer=&Server{}
33+
var (
34+
_ proto.DRPCAuthorizerServer=&Server{}
35+
_ proto.DRPCMCPConfiguratorServer=&Server{}
36+
_ proto.DRPCRecorderServer=&Server{}
37+
)
3638

3739
typestoreinterface {
3840
// Recorder-related queries.
@@ -307,11 +309,10 @@ func (s *Server) GetMCPServerAccessTokensBatch(ctx context.Context, in *proto.Ge
307309
gofunc() {
308310
deferwg.Done()
309311

310-
mu.Lock()
311-
defermu.Unlock()
312-
313312
// TODO: timeout.
314313
valid,_,err:=eac.ValidateToken(ctx,link.OAuthToken())
314+
mu.Lock()
315+
defermu.Unlock()
315316
if!valid {
316317
// TODO: attempt refresh.
317318
s.logger.Warn(ctx,"invalid/expired access token, cannot auto-configure MCP",slog.F("provider",link.ProviderID),slog.Error(err))

‎coderd/aibridgedserver/aibridgedserver_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ func TestRecordToolUsage(t *testing.T) {
525525
)
526526
}
527527

528-
// testRecordMethod is a helper that abstracts the common testing pattern for all Record* methods
528+
// testRecordMethod is a helper that abstracts the common testing pattern for all Record* methods.
529529
functestRecordMethod[Reqany,Respany](
530530
t*testing.T,
531531
callMethodfunc(*aibridgedserver.Server, context.Context,Req) (Resp,error),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp