From cf9cfa7e113c0ec551b605d127f4f48ff9b8c6ef Mon Sep 17 00:00:00 2001 From: mlycore Date: Wed, 22 Nov 2023 20:59:47 +0800 Subject: [PATCH] chore: adjust style Signed-off-by: mlycore --- pitr/agent/internal/pkg/opengauss.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pitr/agent/internal/pkg/opengauss.go b/pitr/agent/internal/pkg/opengauss.go index 938dcdf2..c189f86b 100644 --- a/pitr/agent/internal/pkg/opengauss.go +++ b/pitr/agent/internal/pkg/opengauss.go @@ -130,6 +130,7 @@ func (og *openGauss) AsyncBackup(backupPath, instanceName, backupMode string, th return "", fmt.Errorf("unknow err") } +//nolint:dupl func (og *openGauss) ShowBackup(backupPath, instanceName, backupID string) (*model.Backup, error) { cmd := fmt.Sprintf(_showFmt, instanceName, backupPath, backupID) output, err := cmds.Exec(og.shell, cmd) @@ -328,6 +329,7 @@ func (og *openGauss) Restore(backupPath, instance, backupID string, threadsNum u return nil } +//nolint:dupl func (og *openGauss) ShowBackupList(backupPath, instanceName string) ([]*model.Backup, error) { cmd := fmt.Sprintf(_showListFmt, instanceName, backupPath) output, err := cmds.Exec(og.shell, cmd)