Skip to content

Commit 142170c

Browse files
author
Hayim.Shaul@ibm.com
committed
format
Signed-off-by: Hayim.Shaul@ibm.com <hayimsha@fhe03.vpc.cloud9.ibm.com>
1 parent 4a88989 commit 142170c

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

token/services/selector/simple/service.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ func NewService(lockerProvider LockerProvider, c ConfigProvider) *SelectorServic
5656

5757
svc := &SelectorService{}
5858
loader := &loader{
59-
lockerProvider: lockerProvider,
60-
numRetries: cfg.GetNumRetries(),
61-
retryInterval: cfg.GetRetryInterval(),
62-
requestCertification: true,
63-
onLockerCreated: svc.trackLocker,
64-
maxTokensPerSelection: limits.MaxTokensPerSelection,
65-
maxLockAttempts: limits.MaxLockAttempts,
66-
maxRetryCycles: limits.MaxRetryCycles,
67-
selectionTimeout: limits.SelectionTimeout,
59+
lockerProvider: lockerProvider,
60+
numRetries: cfg.GetNumRetries(),
61+
retryInterval: cfg.GetRetryInterval(),
62+
requestCertification: true,
63+
onLockerCreated: svc.trackLocker,
64+
maxTokensPerSelection: limits.MaxTokensPerSelection,
65+
maxLockAttempts: limits.MaxLockAttempts,
66+
maxRetryCycles: limits.MaxRetryCycles,
67+
selectionTimeout: limits.SelectionTimeout,
6868
}
6969
svc.managerLazyCache = lazy.NewProviderWithKeyMapper(key, loader.load)
7070

@@ -129,10 +129,10 @@ type loader struct {
129129
onLockerCreated func(Locker)
130130

131131
// Resource limits
132-
maxTokensPerSelection int
133-
maxLockAttempts int
134-
maxRetryCycles int
135-
selectionTimeout time.Duration
132+
maxTokensPerSelection int
133+
maxLockAttempts int
134+
maxRetryCycles int
135+
selectionTimeout time.Duration
136136
}
137137

138138
func (s *loader) load(tms *token.ManagementService) (token.SelectorManager, error) {

0 commit comments

Comments
 (0)