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

@ -198,7 +198,7 @@ func (q *Queue) Init(cfg *config.Map) error {
cfg.Custom("target", false, true, nil, modconfig.DeliveryDirective, &q.Target)
cfg.String("hostname", true, true, "", &q.hostname)
cfg.String("autogenerated_msg_domain", true, false, "", &q.autogenMsgDomain)
cfg.Custom("bounce", false, false, nil, func(m *config.Map, node *config.Node) (interface{}, error) {
cfg.Custom("bounce", false, false, nil, func(m *config.Map, node config.Node) (interface{}, error) {
return msgpipeline.New(m.Globals, node.Children)
}, &q.dsnPipeline)
if _, err := cfg.Process(); err != nil {