chore: delete unuse default value and make flapping_detect middle improtance
This commit is contained in:
parent
5659cc2b47
commit
70e800f8a4
|
@ -50,12 +50,6 @@
|
||||||
started_at :: pos_integer(),
|
started_at :: pos_integer(),
|
||||||
detect_cnt :: integer()
|
detect_cnt :: integer()
|
||||||
}).
|
}).
|
||||||
-define(DEFAULT_POLICY, #{
|
|
||||||
enable => false,
|
|
||||||
max_count => 15,
|
|
||||||
window_time => 60000,
|
|
||||||
ban_time => 5 * 6000
|
|
||||||
}).
|
|
||||||
|
|
||||||
-opaque flapping() :: #flapping{}.
|
-opaque flapping() :: #flapping{}.
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ roots(low) ->
|
||||||
sc(
|
sc(
|
||||||
ref("flapping_detect"),
|
ref("flapping_detect"),
|
||||||
#{
|
#{
|
||||||
importance => ?DEFAULT_IMPORTANCE,
|
importance => ?IMPORTANCE_MEDIUM,
|
||||||
converter => fun flapping_detect_converter/2
|
converter => fun flapping_detect_converter/2
|
||||||
}
|
}
|
||||||
)},
|
)},
|
||||||
|
|
Loading…
Reference in New Issue