Skip to content

Commit

Permalink
fix: use public todel repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed Oct 16, 2023
1 parent 96348e5 commit dfb875c
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 44 deletions.
86 changes: 49 additions & 37 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ reqwest = { version = "0.11.11", features = ["json"] }
rpassword = "7.2.0"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.85"
todel = { git = "https://github.com/eludris/eludris", rev = "3a953b7" }
todel = { git = "https://github.com/eludris/todel", version = "0.4.0-alpha1" }
tokio = { version = "1.20.1", features = [
"macros",
"rt-multi-thread",
Expand Down
4 changes: 2 additions & 2 deletions src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{sync::Arc, time::Duration};
use futures::{SinkExt, StreamExt};
use notify_rust::Notification;
use rand::{rngs::StdRng, Rng, SeedableRng};
use todel::models::{ClientPayload, Message, ServerPayload, StatusType, User};
use todel::{ClientPayload, Message, ServerPayload, StatusType, User};
use tokio::sync::Mutex as AsyncMutex;
use tokio::time;
use tokio_tungstenite::{connect_async, tungstenite::Message as WsMessage};
Expand Down Expand Up @@ -162,7 +162,7 @@ pub async fn handle_gateway(app: Arc<AppContext>, token: String) {
app.messages.lock().unwrap().push((
PilferMessage::System(SystemMessage {
content: format!(
"Could not get user {}: {}",
"Could not get user {}: {:?}",
user_id, err
),
}),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use std::{
time::{Duration, SystemTime, UNIX_EPOCH},
vec,
};
use todel::models::{ErrorResponse, InstanceInfo, Message, MessageCreate};
use todel::{ErrorResponse, InstanceInfo, Message, MessageCreate};
use tokio::{sync::Mutex as AsyncMutex, task::spawn_blocking};
use tui::{
backend::{Backend, CrosstermBackend},
Expand Down
2 changes: 1 addition & 1 deletion src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::sync::Mutex;
use notify_rust::NotificationHandle;
use reqwest::Client;
use serde::{Deserialize, Serialize};
use todel::models::{ErrorResponse, Message, User};
use todel::{ErrorResponse, Message, User};
use tokio::sync::Mutex as AsyncMutex;
use tui::style::Style;

Expand Down
2 changes: 1 addition & 1 deletion src/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use anyhow::{bail, Context};
use directories::ProjectDirs;
use reqwest::Client;
use serde::{Deserialize, Serialize};
use todel::models::{ErrorResponse, InstanceInfo, SessionCreate, SessionCreated, User, UserCreate};
use todel::{ErrorResponse, InstanceInfo, SessionCreate, SessionCreated, User, UserCreate};
use tokio::fs;

use crate::{models::Response, prompt};
Expand Down
2 changes: 1 addition & 1 deletion src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{cmp::Ordering, time::Duration};

use lazy_static::lazy_static;
use regex::Regex;
use todel::models::InstanceInfo;
use todel::InstanceInfo;

const WARNING: &str =
"Warning: This version of Pilfer is older than the instance you are connecting to.
Expand Down

0 comments on commit dfb875c

Please sign in to comment.