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 {