From 3e93b36ca4d4e08cba8d3f878f4635096cb7411c Mon Sep 17 00:00:00 2001 From: greatroar <@> Date: Thu, 18 Jun 2020 12:55:29 +0200 Subject: [PATCH] Make rclone.New private --- internal/backend/rclone/backend.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/backend/rclone/backend.go b/internal/backend/rclone/backend.go index 339db3bd1..e54819529 100644 --- a/internal/backend/rclone/backend.go +++ b/internal/backend/rclone/backend.go @@ -114,7 +114,7 @@ func wrapConn(c *StdioConn, lim limiter.Limiter) wrappedConn { } // New initializes a Backend and starts the process. -func New(cfg Config, lim limiter.Limiter) (*Backend, error) { +func newBackend(cfg Config, lim limiter.Limiter) (*Backend, error) { var ( args []string err error @@ -234,7 +234,7 @@ func New(cfg Config, lim limiter.Limiter) (*Backend, error) { // Open starts an rclone process with the given config. func Open(cfg Config, lim limiter.Limiter) (*Backend, error) { - be, err := New(cfg, lim) + be, err := newBackend(cfg, lim) if err != nil { return nil, err } @@ -260,7 +260,7 @@ func Open(cfg Config, lim limiter.Limiter) (*Backend, error) { // Create initializes a new restic repo with clone. func Create(cfg Config) (*Backend, error) { - be, err := New(cfg, nil) + be, err := newBackend(cfg, nil) if err != nil { return nil, err }