fix(tls): fix ciphers cache return `ok` at the first time call

This commit is contained in:
firest 2022-09-06 16:42:02 +08:00
parent f188808e67
commit 3f758ca36f
1 changed files with 2 additions and 1 deletions

View File

@ -145,7 +145,8 @@ all_ciphers_set_cached() ->
case persistent_term:get(?FUNCTION_NAME, false) of
false ->
S = sets:from_list(all_ciphers()),
persistent_term:put(?FUNCTION_NAME, S);
persistent_term:put(?FUNCTION_NAME, S),
S;
Set ->
Set
end.