From 2ff1512ae54284167fc4aef22c4fbc52926b5416 Mon Sep 17 00:00:00 2001 From: GitHub Copilot Date: Fri, 15 May 2026 09:02:07 +0000 Subject: [PATCH] chore(vendor): update dependencies Update github.com/longhorn/longhorn-spdk-engine to commit 00930528426cb1d02590c8daaea2a7411da70a0f (v1.12.0-rc2.0.20260515085810-00930528426c) Co-authored-by: derekbit <12527233+derekbit@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- .../longhorn/longhorn-spdk-engine/pkg/spdk/server.go | 10 +++++----- .../pkg/spdk/server_backingimage.go | 2 +- .../longhorn-spdk-engine/pkg/spdk/server_engine.go | 2 +- .../pkg/spdk/server_enginefrontend.go | 2 +- .../longhorn-spdk-engine/pkg/spdk/server_replica.go | 2 +- vendor/modules.txt | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/go.mod b/go.mod index 490f28abd..5f720a8bf 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/longhorn/go-common-libs v0.0.0-20260502161928-1e84fa75a8f1 github.com/longhorn/go-spdk-helper v0.6.2-0.20260514102642-789b2a1cb467 github.com/longhorn/longhorn-engine v1.12.0-rc1.0.20260514055507-33e0c9c94743 - github.com/longhorn/longhorn-spdk-engine v1.12.0-rc2.0.20260515052624-a07df50fb05a + github.com/longhorn/longhorn-spdk-engine v1.12.0-rc2.0.20260515085810-00930528426c github.com/longhorn/types v0.0.0-20260514154143-1dfb06f48eeb github.com/sirupsen/logrus v1.9.4 github.com/urfave/cli v1.22.17 diff --git a/go.sum b/go.sum index 93ce8958f..05a87c03c 100644 --- a/go.sum +++ b/go.sum @@ -156,8 +156,8 @@ github.com/longhorn/go-spdk-helper v0.6.2-0.20260514102642-789b2a1cb467 h1:qwlSB github.com/longhorn/go-spdk-helper v0.6.2-0.20260514102642-789b2a1cb467/go.mod h1:ZxbMkGsbC2TpzuGLjn9yXXExolt8/F3dl/C8O9/Qa7s= github.com/longhorn/longhorn-engine v1.12.0-rc1.0.20260514055507-33e0c9c94743 h1:qipUnGPoycKQTV4o8fldtADKeZB5wsr3MVxumLH8xQA= github.com/longhorn/longhorn-engine v1.12.0-rc1.0.20260514055507-33e0c9c94743/go.mod h1:ElF8baZykwtIhUy3bQmn2BWGPQ5Ctz1fNJV53ByIKbA= -github.com/longhorn/longhorn-spdk-engine v1.12.0-rc2.0.20260515052624-a07df50fb05a h1:+aUW0HlROJw6vcwKFCPZuMk9Il/42Vi7oGNI7p8j78c= -github.com/longhorn/longhorn-spdk-engine v1.12.0-rc2.0.20260515052624-a07df50fb05a/go.mod h1:VrfM/Lw54QdrjNs1uTKuGDqg87NdLh9v/OupX//f9tc= +github.com/longhorn/longhorn-spdk-engine v1.12.0-rc2.0.20260515085810-00930528426c h1:3agRVjKaJkHPPAMBIEDcosd+taJ3YVGR355ZK05BG6Q= +github.com/longhorn/longhorn-spdk-engine v1.12.0-rc2.0.20260515085810-00930528426c/go.mod h1:VrfM/Lw54QdrjNs1uTKuGDqg87NdLh9v/OupX//f9tc= github.com/longhorn/sparse-tools v0.0.0-20260423074222-280e61de741a h1:xb71oeVPI7XZymAAG8ts5deC8s40dnX5IgxTYAB/qnk= github.com/longhorn/sparse-tools v0.0.0-20260423074222-280e61de741a/go.mod h1:d8l9nyC8No3PIfYHwZunnBj88y5M4sDM+h6uZyTtaNk= github.com/longhorn/types v0.0.0-20260514154143-1dfb06f48eeb h1:kj/ag7xC8l9QewJ6tpZAWCYRgipYwIOkqPoqY52utW4= diff --git a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server.go b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server.go index 79002c4dd..80f93a60d 100644 --- a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server.go +++ b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server.go @@ -524,16 +524,16 @@ func (s *Server) broadcasting() { } } -func (s *Server) Subscribe(instanceType types.InstanceType) (<-chan interface{}, error) { +func (s *Server) Subscribe(ctx context.Context, instanceType types.InstanceType) (<-chan interface{}, error) { switch instanceType { case types.InstanceTypeEngine: - return s.broadcasters[types.InstanceTypeEngine].Subscribe(context.TODO(), s.engineBroadcastConnector) + return s.broadcasters[types.InstanceTypeEngine].Subscribe(ctx, s.engineBroadcastConnector) case types.InstanceTypeEngineFrontend: - return s.broadcasters[types.InstanceTypeEngineFrontend].Subscribe(context.TODO(), s.engineFrontendBroadcastConnector) + return s.broadcasters[types.InstanceTypeEngineFrontend].Subscribe(ctx, s.engineFrontendBroadcastConnector) case types.InstanceTypeReplica: - return s.broadcasters[types.InstanceTypeReplica].Subscribe(context.TODO(), s.replicaBroadcastConnector) + return s.broadcasters[types.InstanceTypeReplica].Subscribe(ctx, s.replicaBroadcastConnector) case types.InstanceTypeBackingImage: - return s.broadcasters[types.InstanceTypeBackingImage].Subscribe(context.TODO(), s.backingImageBroadcastConnector) + return s.broadcasters[types.InstanceTypeBackingImage].Subscribe(ctx, s.backingImageBroadcastConnector) } return nil, fmt.Errorf("invalid instance type %v for subscription", instanceType) } diff --git a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_backingimage.go b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_backingimage.go index 194db2abf..7968ac902 100644 --- a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_backingimage.go +++ b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_backingimage.go @@ -164,7 +164,7 @@ func (s *Server) BackingImageList(ctx context.Context, req *emptypb.Empty) (ret // BackingImageWatch will watch the backing image update. func (s *Server) BackingImageWatch(req *emptypb.Empty, srv spdkrpc.SPDKService_BackingImageWatchServer) error { - responseCh, err := s.Subscribe(types.InstanceTypeBackingImage) + responseCh, err := s.Subscribe(srv.Context(), types.InstanceTypeBackingImage) if err != nil { return err } diff --git a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_engine.go b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_engine.go index 89f675ffc..81459ae0d 100644 --- a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_engine.go +++ b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_engine.go @@ -261,7 +261,7 @@ func (s *Server) EngineList(ctx context.Context, req *emptypb.Empty) (*spdkrpc.E // EngineWatch returns a stream of engine updates func (s *Server) EngineWatch(req *emptypb.Empty, srv spdkrpc.SPDKService_EngineWatchServer) error { - responseCh, err := s.Subscribe(types.InstanceTypeEngine) + responseCh, err := s.Subscribe(srv.Context(), types.InstanceTypeEngine) if err != nil { return err } diff --git a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_enginefrontend.go b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_enginefrontend.go index fc1442f51..40d584291 100644 --- a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_enginefrontend.go +++ b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_enginefrontend.go @@ -384,7 +384,7 @@ func (s *Server) EngineFrontendList(ctx context.Context, req *emptypb.Empty) (*s // EngineFrontendWatch watches engine frontends. func (s *Server) EngineFrontendWatch(req *emptypb.Empty, srv spdkrpc.SPDKService_EngineFrontendWatchServer) error { - responseCh, err := s.Subscribe(types.InstanceTypeEngineFrontend) + responseCh, err := s.Subscribe(srv.Context(), types.InstanceTypeEngineFrontend) if err != nil { return err } diff --git a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_replica.go b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_replica.go index 940eee3d9..22a1d6c96 100644 --- a/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_replica.go +++ b/vendor/github.com/longhorn/longhorn-spdk-engine/pkg/spdk/server_replica.go @@ -136,7 +136,7 @@ func (s *Server) ReplicaList(ctx context.Context, req *emptypb.Empty) (*spdkrpc. // ReplicaWatch returns a stream of replica updates func (s *Server) ReplicaWatch(req *emptypb.Empty, srv spdkrpc.SPDKService_ReplicaWatchServer) error { - responseCh, err := s.Subscribe(types.InstanceTypeReplica) + responseCh, err := s.Subscribe(srv.Context(), types.InstanceTypeReplica) if err != nil { return err } diff --git a/vendor/modules.txt b/vendor/modules.txt index 19befbb17..8a106f077 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -383,7 +383,7 @@ github.com/longhorn/longhorn-engine/pkg/sync github.com/longhorn/longhorn-engine/pkg/types github.com/longhorn/longhorn-engine/pkg/util github.com/longhorn/longhorn-engine/pkg/util/disk -# github.com/longhorn/longhorn-spdk-engine v1.12.0-rc2.0.20260515052624-a07df50fb05a +# github.com/longhorn/longhorn-spdk-engine v1.12.0-rc2.0.20260515085810-00930528426c ## explicit; go 1.25.3 github.com/longhorn/longhorn-spdk-engine/pkg/api github.com/longhorn/longhorn-spdk-engine/pkg/client