Move initLibStore() immediately after initLibUtil()

Part of an effort to make it easier to initialize the right things,
by moving code into the appropriate libraries.

The goal of this reordering is to make initLibStore self-sufficient
in a following commit.
This commit is contained in:
Robert Hensing 2023-02-01 17:09:35 +01:00
parent a692c43729
commit 9693076715

View file

@ -162,6 +162,7 @@ void initNix()
#endif #endif
initLibUtil(); initLibUtil();
initLibStore();
if (sodium_init() == -1) if (sodium_init() == -1)
throw Error("could not initialise libsodium"); throw Error("could not initialise libsodium");
@ -223,7 +224,6 @@ void initNix()
#endif #endif
preloadNSS(); preloadNSS();
initLibStore();
} }