Skip to content

Commit c882fc5

Browse files
committed
Revert unused code
1 parent 0fe21e1 commit c882fc5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cmd/state-svc/internal/resolver/resolver.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ type Resolver struct {
4242
auth *authentication.Auth
4343
}
4444

45-
// jwtKeepAliveDuration determines how long after the last state tool interaction we want to keep the JWT alive
46-
const jwtKeepAliveDuration = 1 * time.Hour
47-
4845
// var _ genserver.ResolverRoot = &Resolver{} // Must implement ResolverRoot
4946

5047
func New(cfg *config.Instance, an *sync.Client, auth *authentication.Auth) (*Resolver, error) {
@@ -68,9 +65,7 @@ func New(cfg *config.Instance, an *sync.Client, auth *authentication.Auth) (*Res
6865
pollRate = overrideInt
6966
}
7067

71-
pollRateDuration := time.Duration(int64(time.Millisecond) * pollRate)
72-
73-
pollAuth := poller.New(pollRateDuration, func() (interface{}, error) {
68+
pollAuth := poller.New(time.Duration(int64(time.Millisecond)*pollRate), func() (interface{}, error) {
7469
if auth.SyncRequired() {
7570
return nil, auth.Sync()
7671
}

0 commit comments

Comments
 (0)