mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 00:36:14 -06:00
go fmt
This commit is contained in:
parent
f8f446456c
commit
a90cf75f8a
3 changed files with 8 additions and 9 deletions
|
|
@ -135,8 +135,8 @@ func (t *timeline) GetXFromTop(amount int) ([]*apimodel.Status, error) {
|
||||||
|
|
||||||
func (t *timeline) GetXBehindID(amount int, behindID string, attempts *int) ([]*apimodel.Status, error) {
|
func (t *timeline) GetXBehindID(amount int, behindID string, attempts *int) ([]*apimodel.Status, error) {
|
||||||
l := t.log.WithFields(logrus.Fields{
|
l := t.log.WithFields(logrus.Fields{
|
||||||
"func": "GetXBehindID",
|
"func": "GetXBehindID",
|
||||||
"amount": amount,
|
"amount": amount,
|
||||||
"behindID": behindID,
|
"behindID": behindID,
|
||||||
"attempts": *attempts,
|
"attempts": *attempts,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -30,14 +30,13 @@ import (
|
||||||
|
|
||||||
func (t *timeline) prepareNextQuery(amount int, maxID string, sinceID string, minID string) error {
|
func (t *timeline) prepareNextQuery(amount int, maxID string, sinceID string, minID string) error {
|
||||||
l := t.log.WithFields(logrus.Fields{
|
l := t.log.WithFields(logrus.Fields{
|
||||||
"func": "prepareNextQuery",
|
"func": "prepareNextQuery",
|
||||||
"amount": amount,
|
"amount": amount,
|
||||||
"maxID": maxID,
|
"maxID": maxID,
|
||||||
"sinceID": sinceID,
|
"sinceID": sinceID,
|
||||||
"minID": minID,
|
"minID": minID,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// maxID is defined but sinceID isn't so take from behind
|
// maxID is defined but sinceID isn't so take from behind
|
||||||
|
|
@ -171,7 +170,7 @@ prepareloop:
|
||||||
|
|
||||||
func (t *timeline) PrepareFromTop(amount int) error {
|
func (t *timeline) PrepareFromTop(amount int) error {
|
||||||
l := t.log.WithFields(logrus.Fields{
|
l := t.log.WithFields(logrus.Fields{
|
||||||
"func": "PrepareFromTop",
|
"func": "PrepareFromTop",
|
||||||
"amount": amount,
|
"amount": amount,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue