File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17+ // NOTE: THE CODE IN THIS FILE IS MAINLY REFERENCED FROM CILIUM MAGLEV
18+ // ALGORITHM( https://github.com/cilium/cilium/blob/44ec948479bb7e4511ec39f1e0d19d794ca1fba3/pkg/maglev/maglev.go)
19+ // AND ADAPTED FOR KMESH.
20+
1721package maglev
1822
1923import (
Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ func newApiRouteAction(action *config_route_v3.RouteAction) *route_v2.RouteActio
490490 apiHashPolicys = append (apiHashPolicys , apiHashPolicy )
491491 default :
492492 log .Errorf ("newApiRouteAction HashPolicy default, type is %T" , hp .GetPolicySpecifier ())
493- return nil
493+ continue
494494 }
495495 }
496496 apiAction .HashPolicy = apiHashPolicys
You can’t perform that action at this time.
0 commit comments