Minor cleanup from refactoring
This commit is contained in:
@@ -17,12 +17,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/cheggaaa/pb"
|
||||
"io"
|
||||
|
||||
"github.com/minio-io/cli"
|
||||
"github.com/minio-io/mc/pkg/console"
|
||||
"github.com/minio-io/minio/pkg/iodine"
|
||||
"github.com/minio-io/minio/pkg/utils/log"
|
||||
"io"
|
||||
)
|
||||
|
||||
type message struct {
|
||||
@@ -103,7 +103,7 @@ func doCopyCmd(ctx *cli.Context) {
|
||||
for _, writer := range writeClosers {
|
||||
writers = append(writers, writer)
|
||||
}
|
||||
bar := pb.New64(length)
|
||||
bar := startBar(length)
|
||||
writers = append(writers, bar)
|
||||
|
||||
// write progress bar
|
||||
|
||||
@@ -37,12 +37,6 @@ type Client interface {
|
||||
StatObject(bucket, object string) (size int64, date time.Time, err error)
|
||||
}
|
||||
|
||||
type WriteErrorCloser interface {
|
||||
io.WriteCloser
|
||||
|
||||
CloseWithError(error) error
|
||||
}
|
||||
|
||||
// Bucket - carries s3 bucket reply header
|
||||
type Bucket struct {
|
||||
Name string
|
||||
|
||||
Reference in New Issue
Block a user