writelock_issue
This commit is contained in:
parent
6deac8e6c7
commit
afd7b7d387
5 changed files with 332 additions and 27 deletions
src/custom/experimental
|
@ -57,8 +57,11 @@ pub async fn init(mgr: Arc<ModulesManager>) {
|
|||
// 2. Add the BotAction to ModulesManager
|
||||
botc1.add_to_modmgr(Arc::clone(&mgr)).await;
|
||||
|
||||
// If enabling by defauling at instance level
|
||||
mgr.set_instance_enabled(BotModule(String::from("experiments002"))).await;
|
||||
|
||||
// [ ] #TODO - FOR SOME REASON, IF DISABLED BY DEFAULT, IT OVERFLOWS at RUNGTIME
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -79,15 +82,6 @@ async fn sayout(params : ExecBodyParams) {
|
|||
[x] Get the parent module
|
||||
*/
|
||||
|
||||
// let params_clone = Arc::clone(¶ms.parent_act);
|
||||
// let actlock = params_clone.read().await;
|
||||
// let act = &(*actlock);
|
||||
// let parent_module = match act {
|
||||
// BotAction::C(c) => Some(&(*c).module),
|
||||
// BotAction::L(l) => Some(&(*l).module),
|
||||
// _ => None,
|
||||
// };
|
||||
|
||||
let parent_module = params.get_parent_module().await;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue