mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-17 05:23:00 -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
|
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)
|
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 {
|
for {
|
||||||
accounts, err := p.db.GetAccountsForInstance(block.Domain, maxID, limit)
|
accounts, err := p.db.GetAccountsForInstance(block.Domain, maxID, limit)
|
||||||
if err != nil {
|
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 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
|
maxID = a.ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue