guestbookPageSize's type was changed to int64.
This commit is contained in:
parent
9452194c83
commit
6efb13870c
@ -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() {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user