Skip to content

Commit

Permalink
Remove expire at
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
  • Loading branch information
pierre-emmanuelJ committed Jan 10, 2024
1 parent cf7e1b7 commit 572c29b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions v3/credentials/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package credentials
import (
"errors"
"sync"
"time"
)

var (
Expand Down Expand Up @@ -33,7 +32,6 @@ type Provider interface {
type Credentials struct {
credentials Value
provider Provider
expireAt time.Time

sync.RWMutex
}
Expand All @@ -49,14 +47,6 @@ func (c *Credentials) Expire() {
defer c.Unlock()

c.credentials = Value{}

}

func (c *Credentials) ExpiresAt() (time.Time, error) {
c.RLock()
defer c.RUnlock()

return c.expireAt, nil
}

func (c *Credentials) Get() (Value, error) {
Expand Down

0 comments on commit 572c29b

Please # to comment.