Tweak relay status
This commit is contained in:
@@ -32,7 +32,7 @@ Notes:
|
||||
## `pub fn create_relay(&self, relay: &Relay) -> Result<()>`
|
||||
|
||||
- Creates relay, may throw sqlite uniqueness error on subdomain
|
||||
- Sets relay status to `new`
|
||||
- Sets relay status to `active`
|
||||
- Logs activity as `(create_relay, relay_id)`
|
||||
|
||||
## `pub fn update_relay(&self, relay: &Relay) -> Result<()>`
|
||||
|
||||
@@ -21,7 +21,7 @@ Members:
|
||||
|
||||
## `async fn catch_up(&self)`
|
||||
|
||||
- Lists all relays via `query.list_relays()` and syncs any that have `status = "new"` or a non-empty `sync_error`.
|
||||
- Lists all relays via `query.list_relays()` and syncs any where `synced == 0` and `sync_error` is empty.
|
||||
|
||||
## `async fn handle_activity(&self, activity: &Activity)`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user