fix http response code when forwarder node is not available

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

No files matched your search

+3
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()