Skip to content

Commit

Permalink
updates sync config to use protobuf duration type to allow for friend…
Browse files Browse the repository at this point in the history
…lier API
  • Loading branch information
kishie committed Feb 12, 2024
1 parent 41246e9 commit 627a961
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/plugins/ostree/api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ package apiv1
import (
"context"
"regexp"
"time"

"google.golang.org/protobuf/types/known/durationpb"
)

const (
Expand Down Expand Up @@ -64,8 +65,8 @@ type OSTreeRepositorySyncRequest struct {
// Depth - The depth of the mirror. Defaults is 0, -1 means infinite.
Depth int `json:"depth"`

// Timeout - The timeout for the sync in seconds. Default is 20 minutes.
Timeout time.Duration `json:"timeout"`
// Timeout - The timeout for the sync in seconds. Default is 1 hour.
Timeout durationpb.Duration `json:"timeout"`
}

// Mirror sync status.
Expand Down

0 comments on commit 627a961

Please sign in to comment.