Skip to content

Commit b9da989

Browse files
crosbymichaelJared Cordasco
authored andcommitted
Merge pull request #3213 from jcordasc/small-fixes
Correct import path and PusherFunc signature (cherry picked from commit 8722ec0) Signed-off-by: Jared Cordasco <[email protected]>
1 parent 56a6552 commit b9da989

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

remotes/resolver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ func (fn FetcherFunc) Fetch(ctx context.Context, desc ocispec.Descriptor) (io.Re
7272

7373
// PusherFunc allows package users to implement a Pusher with just a
7474
// function.
75-
type PusherFunc func(ctx context.Context, desc ocispec.Descriptor, r io.Reader) error
75+
type PusherFunc func(ctx context.Context, desc ocispec.Descriptor) (content.Writer, error)
7676

7777
// Push content
78-
func (fn PusherFunc) Push(ctx context.Context, desc ocispec.Descriptor, r io.Reader) error {
79-
return fn(ctx, desc, r)
78+
func (fn PusherFunc) Push(ctx context.Context, desc ocispec.Descriptor) (content.Writer, error) {
79+
return fn(ctx, desc)
8080
}

services/server/server_solaris.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package server
1919
import (
2020
"context"
2121

22-
srvconfig "github.com/containerd/containerd/server/config"
22+
srvconfig "github.com/containerd/containerd/services/server/config"
2323
)
2424

2525
func apply(_ context.Context, _ *srvconfig.Config) error {

0 commit comments

Comments
 (0)