Skip to content

Commit 14da383

Browse files
guoqqqijuzhiyuan
andauthored
feat: support EWMA (#1131)
Co-authored-by: 琚致远 <[email protected]>
1 parent c341e2e commit 14da383

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

web/src/components/Upstream/UpstreamForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import type { FormInstance } from 'antd/es/form';
2626
enum Type {
2727
roundrobin = 'roundrobin',
2828
chash = 'chash',
29+
ewma = 'ewma',
2930
}
3031

3132
enum HashOn {

web/src/pages/Route/typing.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ declare namespace RouteModule {
176176
};
177177

178178
type Form2Data = {
179-
type: 'roundrobin' | 'chash';
179+
type: 'roundrobin' | 'chash' | 'ewma';
180180
hash_on?: string;
181181
key?: string;
182182
upstreamPath?: string;

0 commit comments

Comments
 (0)