Skip to content

Commit

Permalink
refactor: move common func to backupstore lib
Browse files Browse the repository at this point in the history
ref: 6514

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
  • Loading branch information
c3y1huang authored and David Ko committed Sep 18, 2023
1 parent 20299e8 commit 3e8877e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/proxy/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
grpccodes "google.golang.org/grpc/codes"
grpcstatus "google.golang.org/grpc/status"

butil "github.com/longhorn/backupstore/util"
eclient "github.com/longhorn/longhorn-engine/pkg/controller/client"
rclient "github.com/longhorn/longhorn-engine/pkg/replica/client"
esync "github.com/longhorn/longhorn-engine/pkg/sync"
etypes "github.com/longhorn/longhorn-engine/pkg/types"
eutil "github.com/longhorn/longhorn-engine/pkg/util"
eptypes "github.com/longhorn/longhorn-engine/proto/ptypes"

rpc "github.com/longhorn/longhorn-instance-manager/pkg/imrpc"
Expand Down Expand Up @@ -53,7 +53,7 @@ func (p *Proxy) snapshotBackup(ctx context.Context, req *rpc.EngineSnapshotBacku
}
}

credential, err := eutil.GetBackupCredential(req.BackupTarget)
credential, err := butil.GetBackupCredential(req.BackupTarget)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -234,7 +234,7 @@ func (p *Proxy) backupRestore(ctx context.Context, req *rpc.EngineBackupRestoreR
}
}

credential, err := eutil.GetBackupCredential(req.Target)
credential, err := butil.GetBackupCredential(req.Target)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3e8877e

Please sign in to comment.