Merge pull request #8903 from lafirest/fix/tls_lib_error

fix(tls): fix ciphers cache return `ok` at the first time call
This commit is contained in:
lafirest 2022-09-06 20:28:56 +08:00 committed by GitHub
commit fbea5dce58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.