Skip to content

Commit

Permalink
chore: hasScalarTTL -> hasTTL (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgautier404 authored Feb 17, 2023
1 parent cfb016d commit c238465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions momento/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type hasItems interface {
items() map[string]Value
}

type hasScalarTTL interface {
type hasTTL interface {
ttl() time.Duration
}

Expand Down Expand Up @@ -131,7 +131,7 @@ func prepareItems(r hasItems) (map[string][]byte, error) {
return retMap, nil
}

func prepareTTL(r hasScalarTTL, defaultTtl time.Duration) (uint64, error) {
func prepareTTL(r hasTTL, defaultTtl time.Duration) (uint64, error) {
ttl := r.ttl()
if r.ttl() == time.Duration(0) {
ttl = defaultTtl
Expand Down

0 comments on commit c238465

Please sign in to comment.