Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore(env): move dotenv (#347)

Sean Aye772a85414df8
diff --git a/rust/cloud-storage/macro_entrypoint/src/lib.rs b/rust/cloud-storage/macro_entrypoint/src/lib.rs
index edb4d2198d..6459a26473 100644
--- a/rust/cloud-storage/macro_entrypoint/src/lib.rs
+++ b/rust/cloud-storage/macro_entrypoint/src/lib.rs
@@ -38,6 +38,7 @@ impl MacroEntrypoint {
/// consume self, initialize this binary, and return a proof that it was initialized [InitializedEntrypoint]
pub fn init(self) -> InitializedEntrypoint {
+ dotenv::dotenv().ok();
std::panic::set_hook(Box::new(tracing_panic::panic_hook));
match (self.env, self.local) {
@@ -73,7 +74,6 @@ impl MacroEntrypoint {
}
}
- dotenv::dotenv().unwrap();
InitializedEntrypoint(())
}