Skip to content

Commit

Permalink
chore: adjust style
Browse files Browse the repository at this point in the history
Signed-off-by: mlycore <[email protected]>
  • Loading branch information
mlycore committed Nov 22, 2023
1 parent 5a3067d commit cf9cfa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pitr/agent/internal/pkg/opengauss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cf9cfa7

Please sign in to comment.