Skip to content

Commit

Permalink
Moving clock to auth package
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Oct 6, 2016
1 parent df825f4 commit a223e5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion types/clock.go → prosper/auth/clock.go
@@ -1,4 +1,4 @@
package types
package auth

import (
"time"
Expand Down
6 changes: 2 additions & 4 deletions prosper/auth/token_manager.go
Expand Up @@ -3,8 +3,6 @@ package auth
import (
"sync"
"time"

"github.com/mtlynch/gofn-prosper/types"
)

// OAuthToken is an authentication token from Prosper that is valid for a
Expand All @@ -25,7 +23,7 @@ type TokenManager interface {
type defaultTokenManager struct {
token OAuthToken
authenticator ProsperAuthenticator
clock types.Clock
clock Clock
lock sync.Mutex
}

Expand All @@ -35,7 +33,7 @@ func NewTokenManager(authenticator ProsperAuthenticator) TokenManager {
return &defaultTokenManager{
token: OAuthToken{},
authenticator: authenticator,
clock: types.DefaultClock{},
clock: DefaultClock{},
lock: sync.Mutex{},
}
}
Expand Down

0 comments on commit a223e5f

Please sign in to comment.