1
0

guestbookPageSize's type was changed to int64.

This commit is contained in:
Alexander Andreev 2023-02-05 21:09:44 +04:00
parent 9452194c83
commit 6efb13870c
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
2 changed files with 2 additions and 2 deletions

View File

@ -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 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 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 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") var databasesPath *string = flag.String("db", "/var/lib/dwelling-home", "path to a directory where to store DB files")
func main() { func main() {

View File

@ -15,7 +15,7 @@ type Handlers struct {
captchaExpire time.Duration captchaExpire time.Duration
databasesPath string databasesPath string
guestbookOwner string guestbookOwner string
guestbookPageSize int guestbookPageSize int64
} }
func NewHandlers(captchaExpire time.Duration, dbPath, gbOwner string, gbPageSize int) *Handlers { func NewHandlers(captchaExpire time.Duration, dbPath, gbOwner string, gbPageSize int) *Handlers {