Skip to content

Commit

Permalink
Fix push expiration handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson authored and Harry S committed Mar 17, 2022
1 parent 5d6aad8 commit 04467b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions push/buford/buford.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type NewClient func(*tls.Certificate) (*http.Client, error)
// bufordFactory instantiates new buford Services to satisfy the PushProviderFactory interface.
type bufordFactory struct {
workers uint
expiration time.Time
expiration time.Duration
newClientCallback NewClient
}

Expand All @@ -34,7 +34,7 @@ func WithWorkers(workers uint) Option {
}

// WithExpiration sets the APNs expiration time for the push notifications.
func WithExpiration(expiration time.Time) Option {
func WithExpiration(expiration time.Duration) Option {
return func(f *bufordFactory) {
f.expiration = expiration
}
Expand Down

0 comments on commit 04467b2

Please sign in to comment.