chore: adjust timing
This commit is contained in:
3 files changed
+18
-18
No files matched your search
@@ -210,12 +210,12 @@ func httpServer(ctx context.Context, app *appState) error {
|
||||
preamble = add(preamble, iAmTheWatcher)
|
||||
preamble = add(preamble, "")
|
||||
preamble = add(preamble, "range = 1 %d", end)
|
||||
preamble = add(preamble, "self = /api/plain/twts%s", mkqry(uri, limit, offset))
|
||||
preamble = add(preamble, "self = /api/plain/twt%s", mkqry(uri, limit, offset))
|
||||
if next := offset + int64(len(twts)); next < end {
|
||||
preamble = add(preamble, "next = /api/plain/twts%s", mkqry(uri, limit, next))
|
||||
preamble = add(preamble, "next = /api/plain/twt%s", mkqry(uri, limit, next))
|
||||
}
|
||||
if prev := offset - int64(limit); prev > 0 {
|
||||
preamble = add(preamble, "prev = /api/plain/twts%s", mkqry(uri, limit, prev))
|
||||
preamble = add(preamble, "prev = /api/plain/twt%s", mkqry(uri, limit, prev))
|
||||
}
|
||||
|
||||
reg := lextwt.NewTwtRegistry(preamble, twts)
|
||||
|
||||
Reference in new issue
Block a user