fix context in PullImage

This commit is contained in:
Pavel Sviderski
2024-12-03 18:33:48 +10:00
parent 43ddb5c363
commit 386e4e25f3
+3 -3
View File
@@ -81,9 +81,9 @@ func (s *Server) StartContainer(ctx context.Context, req *pb.StartContainerReque
return &emptypb.Empty{}, nil
}
func (s *Server) PullImage(
ctx context.Context, req *pb.PullImageRequest, stream grpc.ServerStreamingServer[pb.JSONMessage],
) error {
func (s *Server) PullImage(req *pb.PullImageRequest, stream grpc.ServerStreamingServer[pb.JSONMessage]) error {
ctx := stream.Context()
var opts image.PullOptions
if len(req.Options) > 0 {
if err := json.Unmarshal(req.Options, &opts); err != nil {