chore: delete unuse default value and make flapping_detect middle improtance

This commit is contained in:
zhongwencool 2023-06-07 22:50:11 +08:00
parent 5659cc2b47
commit 70e800f8a4
2 changed files with 1 additions and 7 deletions

View File

@ -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{}.

View File

@ -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
} }
)}, )},