Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed May 16, 2020
1 parent 0bdff7d commit 41088a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion reconciler/configuration.go
Expand Up @@ -33,7 +33,7 @@ func WithInactiveConcurrency(concurrency int) Option {
}
}

// WithActiveConcurrency overrides the default inactive
// WithActiveConcurrency overrides the default active
// concurrency.
func WithActiveConcurrency(concurrency int) Option {
return func(r *Reconciler) {
Expand Down
4 changes: 1 addition & 3 deletions reconciler/reconciler.go
Expand Up @@ -489,7 +489,7 @@ func (r *Reconciler) accountReconciliation(
return nil
}

err = r.inactiveAccountQueue(ctx, inactive, accountCurrency, liveBlock)
err = r.inactiveAccountQueue(inactive, accountCurrency, liveBlock)
if err != nil {
return err
}
Expand All @@ -508,7 +508,6 @@ func (r *Reconciler) accountReconciliation(
}

func (r *Reconciler) inactiveAccountQueue(
ctx context.Context,
inactive bool,
accountCurrency *AccountCurrency,
liveBlock *types.BlockIdentifier,
Expand Down Expand Up @@ -637,7 +636,6 @@ func (r *Reconciler) Reconcile(ctx context.Context) error {
g.Go(func() error {
return r.reconcileActiveAccounts(ctx)
})

}

for j := 0; j < r.inactiveConcurrency; j++ {
Expand Down
5 changes: 0 additions & 5 deletions reconciler/reconciler_test.go
Expand Up @@ -523,7 +523,6 @@ func TestInactiveAccountQueue(t *testing.T) {

t.Run("new account in active reconciliation", func(t *testing.T) {
err := r.inactiveAccountQueue(
context.Background(),
false,
accountCurrency,
block,
Expand All @@ -540,7 +539,6 @@ func TestInactiveAccountQueue(t *testing.T) {

t.Run("another new account in active reconciliation", func(t *testing.T) {
err := r.inactiveAccountQueue(
context.Background(),
false,
accountCurrency2,
block2,
Expand All @@ -567,7 +565,6 @@ func TestInactiveAccountQueue(t *testing.T) {
r.inactiveQueue = []*InactiveEntry{}

err := r.inactiveAccountQueue(
context.Background(),
false,
accountCurrency,
block,
Expand All @@ -583,7 +580,6 @@ func TestInactiveAccountQueue(t *testing.T) {

t.Run("previous account in inactive reconciliation", func(t *testing.T) {
err := r.inactiveAccountQueue(
context.Background(),
true,
accountCurrency,
block,
Expand All @@ -604,7 +600,6 @@ func TestInactiveAccountQueue(t *testing.T) {

t.Run("another previous account in inactive reconciliation", func(t *testing.T) {
err := r.inactiveAccountQueue(
context.Background(),
true,
accountCurrency2,
block2,
Expand Down

0 comments on commit 41088a3

Please sign in to comment.