这是我的代码:
lists:foreach(fun(Method, Value)->
ServerName = method_to_servername(Method),
if
Value ==0 andalso whereis(ServerName) =/= undefined ->
supervisor:terminate_child(flowrate, whereis(ServerName));
Value =/= 0 andalso whereis(ServerName) == undefined ->
supervisor:start_child(?MODULE, [Method]);
Value =/=0 andalso whereis(ServerName) =/= undefined ->
gen_server:call(method_to_servername(Method),
{update_config,
{DesAddress, Method, RateLimitList,
QueueTime,
MinRetry, MaxRetry, Callback}} );
true -> ok
end
end, ?ALL_METHODS).
当我编译代码时,我遇到了这个问题: illegal guard expression
,你能给我一些建议吗?