Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Please the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Apr 29, 2024
1 parent f56fbad commit 541fd4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ func (b *BasicBuffer) IssuerQueueBlockCount(issuerID iotago.AccountID) int {
}

func (b *BasicBuffer) CreateIssuerQueue(issuerID iotago.AccountID) *IssuerQueue {
element := b.activeIssuers.Compute(issuerID, func(currentValue *ring.Ring, exists bool) *ring.Ring {
element := b.activeIssuers.Compute(issuerID, func(_ *ring.Ring, exists bool) *ring.Ring {
if exists {
panic(fmt.Sprintf("issuer queue already exists: %s", issuerID.String()))
}

return b.ringInsert(NewIssuerQueue(issuerID, func(totalSizeDelta int64, readySizeDelta int64) {
if totalSizeDelta != 0 {
b.totalBlocksCount.Add(int64(totalSizeDelta))
b.totalBlocksCount.Add(totalSizeDelta)
}
if readySizeDelta != 0 {
b.readyBlocksCount.Add(int64(readySizeDelta))
b.readyBlocksCount.Add(readySizeDelta)
}
}))
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ func (s *Scheduler) getOrCreateIssuer(accountID iotago.AccountID) *IssuerQueue {

func (s *Scheduler) createIssuer(accountID iotago.AccountID) *IssuerQueue {
issuerQueue := s.basicBuffer.CreateIssuerQueue(accountID)
s.deficits.Compute(accountID, func(currentValue Deficit, exists bool) Deficit {
s.deficits.Compute(accountID, func(_ Deficit, exists bool) Deficit {
if exists {
panic(fmt.Sprintf("issuer already exists: %s", accountID.String()))
}
Expand Down

0 comments on commit 541fd4c

Please sign in to comment.