Merge pull request #3213 from jcordasc/small-fixes

Correct import path and PusherFunc signature
This commit is contained in:
Michael Crosby 2019-04-16 15:32:51 -04:00 committed by GitHub
commit 8722ec03c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -72,9 +72,9 @@ func (fn FetcherFunc) Fetch(ctx context.Context, desc ocispec.Descriptor) (io.Re
// PusherFunc allows package users to implement a Pusher with just a // PusherFunc allows package users to implement a Pusher with just a
// function. // function.
type PusherFunc func(ctx context.Context, desc ocispec.Descriptor, r io.Reader) error type PusherFunc func(ctx context.Context, desc ocispec.Descriptor) (content.Writer, error)
// Push content // Push content
func (fn PusherFunc) Push(ctx context.Context, desc ocispec.Descriptor, r io.Reader) error { func (fn PusherFunc) Push(ctx context.Context, desc ocispec.Descriptor) (content.Writer, error) {
return fn(ctx, desc, r) return fn(ctx, desc)
} }

View File

@ -19,7 +19,7 @@ package server
import ( import (
"context" "context"
srvconfig "github.com/containerd/containerd/server/config" srvconfig "github.com/containerd/containerd/services/server/config"
) )
func apply(_ context.Context, _ *srvconfig.Config) error { func apply(_ context.Context, _ *srvconfig.Config) error {