From 6efb13870c358e327375f43b52ec35ff81850a4c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 5 Feb 2023 21:09:44 +0400 Subject: [PATCH] guestbookPageSize's type was changed to int64. --- cmd/dwelling-home/main.go | 2 +- internal/http/handlers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dwelling-home/main.go b/cmd/dwelling-home/main.go index 91c7091..d0e00bb 100644 --- a/cmd/dwelling-home/main.go +++ b/cmd/dwelling-home/main.go @@ -20,7 +20,7 @@ var showVersion *bool = flag.Bool("v", false, "show version") var listenAddress *string = flag.String("listen", "/var/run/dwelling-home/sock", "listen address (ip:port|unix_path)") var captchaExpiry *time.Duration = flag.Duration("captcha-expiry", 10*time.Minute, "CAPTCHA expiry (e.g. 5m, 60s)") var guestbookOwner *string = flag.String("gb-owner", "Admin", "name of a guestbook owner") -var guestbookPageSize *int = flag.Int("gb-pagesz", 60, "size of a guestbook page") +var guestbookPageSize *int64 = flag.Int64("gb-pagesz", 60, "size of a guestbook page") var databasesPath *string = flag.String("db", "/var/lib/dwelling-home", "path to a directory where to store DB files") func main() { diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 5996f47..291a960 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -15,7 +15,7 @@ type Handlers struct { captchaExpire time.Duration databasesPath string guestbookOwner string - guestbookPageSize int + guestbookPageSize int64 } func NewHandlers(captchaExpire time.Duration, dbPath, gbOwner string, gbPageSize int) *Handlers {