You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a lazy-static ref, initialized it, and printed it. It prints well --called in main thread
The same lazy-static ref when called from another struct from another .rc file return None --this struct is called from main thread
is this expected behavior? Basically i want to have a set of singleton structs --as silo services, initialize them and keep them, so that i can call any service as per the usecase.
Issue:
None
--this struct is called from main threadis this expected behavior? Basically i want to have a set of singleton structs --as silo services, initialize them and keep them, so that i can call any service as per the usecase.
rockdb.rc
When init() is called the above
info!
is printed fine.Below is the main thread.
The last line above throws error
sch2.rc
The text was updated successfully, but these errors were encountered: