test
This commit is contained in:
parent
a55553b785
commit
b41b96fb69
1 changed files with 1 additions and 7 deletions
|
@ -76,15 +76,9 @@ func (h *KeyDBHandler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
|
|||
return d.ArgErr()
|
||||
}
|
||||
case "db":
|
||||
var dbStr string
|
||||
if !d.Args(&dbStr) {
|
||||
if !d.Args(strconv.Itoa(h.DB)) {
|
||||
return d.ArgErr()
|
||||
}
|
||||
db, err := strconv.Atoi(dbStr)
|
||||
if err != nil {
|
||||
return d.Errf("invalid db number: %v", err)
|
||||
}
|
||||
h.DB = db
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue