Skip to content
Snippets Groups Projects
Commit 20ac52c6 authored by aliiohs's avatar aliiohs
Browse files

fix bug

parent dcf29931
No related branches found
No related tags found
No related merge requests found
......@@ -75,12 +75,12 @@ func RouterInit(confRouterFile string) error {
return perrors.Errorf("ioutil.ReadFile(file:%s) = error:%v", confRouterFile, perrors.WithStack(err))
}
routerConfig = &ConditionRouterConfig{}
err = yaml.Unmarshal(confFileStream, providerConfig)
err = yaml.Unmarshal(confFileStream, routerConfig)
if err != nil {
return perrors.Errorf("yaml.Unmarshal() = error:%v", perrors.WithStack(err))
}
logger.Debugf("provider config{%#v}\n", providerConfig)
logger.Debugf("provider config{%#v}\n", routerConfig)
directory.RouterUrlSet.Add(initRouterUrl())
return nil
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment