Use config.Node instead of *config.Node everywhere

Closes #197.
This commit is contained in:
fox.cpp 2020-03-03 21:54:16 +03:00
parent e0c11040e2
commit 1579ea10b2
No known key found for this signature in database
GPG key ID: E76D97CCEDE90B6C
40 changed files with 180 additions and 181 deletions

View file

@ -219,7 +219,7 @@ func (store *Storage) Init(cfg *config.Map) error {
cfg.StringList("dsn", false, false, store.dsn, &dsn)
cfg.Custom("fsstore", false, false, func() (interface{}, error) {
return "messages", nil
}, func(m *config.Map, node *config.Node) (interface{}, error) {
}, func(m *config.Map, node config.Node) (interface{}, error) {
if len(node.Args) != 1 {
return nil, m.MatchErr("expected 0 or 1 arguments")
}