Skip to content

Commit bf5a424

Browse files
Merge pull request #3246 from thaJeztah/bump_ttrpc
bump containerd/ttrpc 699c4e40d1e7416e08bf7019c7ce2e9beced4636
2 parents a6cd37e + 8c5779c commit bf5a424

6 files changed

Lines changed: 19 additions & 15 deletions

File tree

runtime/v1/shim/client/client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ func WithConnect(address string, onClose func()) Opt {
219219
if err != nil {
220220
return nil, nil, err
221221
}
222-
client := ttrpc.NewClient(conn)
223-
client.OnClose(onClose)
222+
client := ttrpc.NewClient(conn, ttrpc.WithOnClose(onClose))
224223
return shimapi.NewShimClient(client), conn, nil
225224
}
226225
}

runtime/v2/binary.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ func (b *binary) Start(ctx context.Context) (_ *shim, err error) {
9696
if err != nil {
9797
return nil, err
9898
}
99-
client := ttrpc.NewClient(conn)
100-
client.OnClose(func() { conn.Close() })
99+
client := ttrpc.NewClient(conn, ttrpc.WithOnClose(func() { _ = conn.Close() }))
101100
return &shim{
102101
bundle: b.bundle,
103102
client: client,

runtime/v2/shim.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ func loadShim(ctx context.Context, bundle *Bundle, events *exchange.Exchange, rt
7474
}
7575
}()
7676

77-
client := ttrpc.NewClient(conn)
78-
client.OnClose(func() { conn.Close() })
77+
client := ttrpc.NewClient(conn, ttrpc.WithOnClose(func() { _ = conn.Close() }))
7978
s := &shim{
8079
client: client,
8180
task: task.NewTaskClient(client),

vendor.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ github.com/Microsoft/go-winio 84b4ab48a50763fe7b3abcef38e5205c12027fac
3737
github.com/Microsoft/hcsshim 8abdbb8205e4192c68b5f84c31197156f31be517
3838
google.golang.org/genproto d80a6e20e776b0b17a324d0ba1ab50a39c8e8944
3939
golang.org/x/text 19e51611da83d6be54ddafce4a4af510cb3e9ea4
40-
github.com/containerd/ttrpc f02858b1457c5ca3aaec3a0803eb0d59f96e41d6
40+
github.com/containerd/ttrpc 699c4e40d1e7416e08bf7019c7ce2e9beced4636
4141
github.com/syndtr/gocapability d98352740cb2c55f81556b63d4a1ec64c5a319c2
4242
gotest.tools v2.3.0
4343
github.com/google/go-cmp v0.2.0

vendor/github.com/containerd/ttrpc/client.go

Lines changed: 14 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/containerd/ttrpc/services.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)