mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 10:43:01 -06:00
go fmt
This commit is contained in:
parent
a0553790ab
commit
3f546e8b32
4 changed files with 36 additions and 36 deletions
|
|
@ -119,7 +119,7 @@ func (p *processor) initiateDomainBlockSideEffects(block *gtsmodel.DomainBlock)
|
|||
limit := 20 // just select 20 accounts at a time so we don't nuke our DB/mem with one huge query
|
||||
var maxID string // this is initially an empty string so we'll start at the top of accounts list (sorted by ID)
|
||||
|
||||
selectAccountsLoop:
|
||||
selectAccountsLoop:
|
||||
for {
|
||||
accounts, err := p.db.GetAccountsForInstance(block.Domain, maxID, limit)
|
||||
if err != nil {
|
||||
|
|
@ -143,7 +143,7 @@ func (p *processor) initiateDomainBlockSideEffects(block *gtsmodel.DomainBlock)
|
|||
}
|
||||
|
||||
// if this is the last account in the slice, set the maxID appropriately for the next query
|
||||
if i == len(accounts) -1 {
|
||||
if i == len(accounts)-1 {
|
||||
maxID = a.ID
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue