fix http response code when forwarder node is not available

This commit is contained in:
ginuerzh
2023-01-31 18:07:44 +08:00
parent ebdb77d71f
commit 9750998940
5 changed files with 8 additions and 3 deletions

View File

@ -338,6 +338,9 @@ func chainGroup(name string, group *config.ChainGroupConfig) chain.Chainer {
}
sel = parseChainSelector(group.Selector)
}
if len(chains) == 0 {
return nil
}
if sel == nil {
sel = defaultChainSelector()