fixup! refactor: make tr_variantFromBuf() public (#2187) (#2216)

This commit is contained in:
Charles Kerr 2021-11-24 14:54:53 -06:00 committed by GitHub
parent 68e3820ed1
commit 7b57cfcfa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ int tr_dhtInit(tr_session* ss)
auto const dat_file = tr_strvPath(ss->configDir, "dht.dat"sv);
auto benc = tr_variant{};
auto const ok = tr_variantFromFile(&benc, TR_VARIANT_PARSE_JSON, dat_file.c_str());
auto const ok = tr_variantFromFile(&benc, TR_VARIANT_PARSE_BENC, dat_file.c_str());
bool have_id = false;
uint8_t* nodes = nullptr;