Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
turn off poller
Sean Aye3d853229fa3a
diff --git a/rust/cloud-storage/connection_gateway/src/context.rs b/rust/cloud-storage/connection_gateway/src/context.rsindex dfc35cb225..a90d3ed6ea 100644--- a/rust/cloud-storage/connection_gateway/src/context.rs+++ b/rust/cloud-storage/connection_gateway/src/context.rs@@ -1,10 +1,6 @@use crate::config::Config;use axum::extract::FromRef;-use frecency::{- domain::services::EventIngestorImpl,- inbound::polling_aggregator::FrecencyAggregatorWorkerHandle,- outbound::postgres::FrecencyPgStorage,-};+use frecency::{domain::services::EventIngestorImpl, outbound::postgres::FrecencyPgStorage};use macro_auth::middleware::decode_jwt::JwtValidationArgs;use macro_middleware::auth::internal_access::InternalApiSecretKey;use redis::{RedisError, aio::MultiplexedConnection};@@ -33,7 +29,6 @@ pub struct AppState {pub config: Arc<Config>,pub jwt_args: JwtValidationArgs,pub internal_auth_key: LocalOrRemoteSecret<InternalApiSecretKey>,- pub frecency_worker: Arc<FrecencyAggregatorWorkerHandle>,}impl AsRef<ApiContext> for AppState {diff --git a/rust/cloud-storage/connection_gateway/src/main.rs b/rust/cloud-storage/connection_gateway/src/main.rsindex bdf34bbadf..a7b65ad241 100644--- a/rust/cloud-storage/connection_gateway/src/main.rs+++ b/rust/cloud-storage/connection_gateway/src/main.rs@@ -4,8 +4,6 @@ mod constants;mod context;mod model;mod service;-use std::{sync::Arc, time::Duration};-use crate::{api::router, config::EnvVars, context::AppState};use anyhow::{Context, Result};use axum::http::{@@ -14,11 +12,7 @@ use axum::http::{};use config::Config;use constants::ORIGINS;-use frecency::{- domain::services::{EventIngestorImpl, PullAggregatorImpl},- inbound::polling_aggregator::FrecencyAggregatorWorkerHandle,- outbound::postgres::{FrecencyPgProcessor, FrecencyPgStorage},-};+use frecency::{domain::services::EventIngestorImpl, outbound::postgres::FrecencyPgStorage};use macro_auth::middleware::decode_jwt::JwtValidationArgs;use macro_entrypoint::MacroEntrypoint;use macro_env_var::env_var;@@ -27,6 +21,7 @@ use secretsmanager_client::LocalOrRemoteSecret;use service::dynamodb::create_dynamo_db_connection_manager;use service::redis::poll_messages;use sqlx::postgres::PgPoolOptions;+use std::sync::Arc;use tower_http::cors::CorsLayer;env_var!(@@ -111,10 +106,6 @@ async fn main() -> Result<()> {config: Arc::clone(&config),jwt_args,internal_auth_key: LocalOrRemoteSecret::Local(InternalApiSecretKey::new()?),- frecency_worker: Arc::new(FrecencyAggregatorWorkerHandle::new_worker(- PullAggregatorImpl::new_with_default_time(FrecencyPgProcessor::new(pgpool)),- Duration::from_secs(60),- )),}).layer(cors);