Skip to content

Commit

Permalink
Remove sendgrid
Browse files Browse the repository at this point in the history
Since #1833, we don't send recovery emails anymore. We don't need
sendgrid thusly.
  • Loading branch information
kim committed Oct 15, 2024
1 parent c4e637e commit d1468b1
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 98 deletions.
15 changes: 0 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ rustyline = { version = "12.0.0", features = [] }
scoped-tls = "1.0.1"
scopeguard = "1.1.0"
second-stack = "0.3"
sendgrid = "0.21"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = { version = "1.0.87", features = ["raw_value"] }
serde_path_to_error = "0.1.9"
Expand Down
6 changes: 0 additions & 6 deletions crates/client-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use spacetimedb::energy::{EnergyBalance, EnergyQuanta};
use spacetimedb::host::{HostController, UpdateDatabaseResult};
use spacetimedb::identity::Identity;
use spacetimedb::messages::control_db::{Database, HostType, Node, Replica};
use spacetimedb::sendgrid_controller::SendGridController;
use spacetimedb_client_api_messages::name::{DomainName, InsertDomainResult, RegisterTldResult, Tld};

pub mod auth;
Expand All @@ -27,7 +26,6 @@ pub trait NodeDelegate: Send + Sync {
fn gather_metrics(&self) -> Vec<prometheus::proto::MetricFamily>;
fn host_controller(&self) -> &HostController;
fn client_actor_index(&self) -> &ClientActorIndex;
fn sendgrid_controller(&self) -> Option<&SendGridController>;

/// Return a JWT decoding key for verifying credentials.
fn public_key(&self) -> &DecodingKey;
Expand Down Expand Up @@ -252,10 +250,6 @@ impl<T: NodeDelegate + ?Sized> NodeDelegate for Arc<T> {
fn private_key(&self) -> &EncodingKey {
(**self).private_key()
}

fn sendgrid_controller(&self) -> Option<&SendGridController> {
(**self).sendgrid_controller()
}
}

pub fn log_and_500(e: impl std::fmt::Display) -> ErrorResponse {
Expand Down
1 change: 0 additions & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ regex.workspace = true
rustc-demangle.workspace = true
rustc-hash.workspace = true
scopeguard.workspace = true
sendgrid.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_path_to_error.workspace = true
Expand Down
1 change: 0 additions & 1 deletion crates/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pub mod execution_context;
pub mod host;
pub mod module_host_context;
pub mod replica_context;
pub mod sendgrid_controller;
pub mod startup;
pub mod subscription;
pub mod util;
Expand Down
63 changes: 0 additions & 63 deletions crates/core/src/sendgrid_controller.rs

This file was deleted.

7 changes: 0 additions & 7 deletions crates/standalone/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ use spacetimedb::energy::{EnergyBalance, EnergyQuanta};
use spacetimedb::host::{DiskStorage, HostController, UpdateDatabaseResult};
use spacetimedb::identity::Identity;
use spacetimedb::messages::control_db::{Database, Node, Replica};
use spacetimedb::sendgrid_controller::SendGridController;
use spacetimedb::stdb_path;
use spacetimedb::worker_metrics::WORKER_METRICS;
use spacetimedb_client_api_messages::name::{DomainName, InsertDomainResult, RegisterTldResult, Tld};
Expand Down Expand Up @@ -172,12 +171,6 @@ impl spacetimedb_client_api::NodeDelegate for StandaloneEnv {
fn private_key(&self) -> &EncodingKey {
&self.private_key
}

/// Standalone SpacetimeDB does not support SendGrid as a means to
/// reissue authentication tokens.
fn sendgrid_controller(&self) -> Option<&SendGridController> {
None
}
}

impl spacetimedb_client_api::ControlStateReadAccess for StandaloneEnv {
Expand Down
2 changes: 0 additions & 2 deletions docker-compose-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ services:
environment:
RUST_BACKTRACE: 1
ENV: release
SENDGRID_API_KEY:
SENDGRID_SENDER:
# Turn on core dumps, hopefully.
ulimits:
core:
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ services:
SPACETIMEDB_TRACY: 1
RUST_BACKTRACE: 1
ENV: dev
SENDGRID_API_KEY:
SENDGRID_SENDER:
networks:
- spacetimedb_default

Expand Down

0 comments on commit d1468b1

Please sign in to comment.