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

Commit1dfbb39

Browse files
committed
fixup! fix: Improve closure of provisioner and agent tailnet dial
1 parent64f6496 commit1dfbb39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎enterprise/coderd/provisionerdaemons_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestProvisionerDaemonServe(t *testing.T) {
4646
codersdk.ProvisionerTypeEcho,
4747
},map[string]string{})
4848
require.NoError(t,err)
49-
srv.DRPCConn().Close()
49+
srv.Close()
5050
})
5151

5252
t.Run("OrganizationNoPerms",func(t*testing.T) {

‎provisionerd/provisionerd.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func (p *Server) closeWithError(err error) error {
521521
p.opts.Logger.Debug(context.Background(),"closing server with error",slog.Error(err))
522522

523523
ifc,ok:=p.clientValue.Load().(proto.DRPCProvisionerDaemonClient);ok {
524-
_=c.Close()
524+
_=c.DRPCConn().Close()
525525
}
526526

527527
returnerr

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp