Do not export Router.route as it is not supposed to be called directly

This commit is contained in:
Mickael Remond
2019-06-24 11:13:25 +02:00
committed by Mickaël Rémond
parent 3521c488ea
commit d6d371df4d
4 changed files with 54 additions and 54 deletions

View File

@@ -128,11 +128,11 @@ func (c *Component) recv() (err error) {
// Handle stream errors
switch p := val.(type) {
case StreamError:
c.router.Route(c, val)
c.router.route(c, val)
c.streamError(p.Error.Local, p.Text)
return errors.New("stream error: " + p.Error.Local)
}
c.router.Route(c, val)
c.router.route(c, val)
}
}