35d15b89 by astaxie

fix #350

1 parent 48ad0202
...@@ -33,7 +33,8 @@ func Register(name string, adapter Config) { ...@@ -33,7 +33,8 @@ func Register(name string, adapter Config) {
33 adapters[name] = adapter 33 adapters[name] = adapter
34 } 34 }
35 35
36 // config need to be correct JSON as string: {"interval":360} 36 // adapterNamer is ini/json/xml/yaml
37 // filename is the config file path
37 func NewConfig(adapterName, fileaname string) (ConfigContainer, error) { 38 func NewConfig(adapterName, fileaname string) (ConfigContainer, error) {
38 adapter, ok := adapters[adapterName] 39 adapter, ok := adapters[adapterName]
39 if !ok { 40 if !ok {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!