Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update pkg/backup/client.go
Browse files Browse the repository at this point in the history
Co-authored-by: kennytm <kennytm@gmail.com>
  • Loading branch information
3pointer and kennytm authored May 6, 2020
1 parent c39285c commit 1abb88d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/backup/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ func (bc *Client) GetTS(ctx context.Context, duration time.Duration, ts uint64)
}

// SetTTL set gcTTL for client
func (bc *Client) SetTTL(ttl int64) {
func (bc *Client) SetGCTTL(ttl int64) {
bc.gcTTL = ttl
}

// GetTTL get tcTTL for this backup, if not exists return 5min
func (bc *Client) GetTTL() int64 {
// GetGCTTL get gcTTL for this backup.
func (bc *Client) GetGCTTL() int64 {
return bc.gcTTL
}

Expand Down

0 comments on commit 1abb88d

Please sign in to comment.