Skip to content

Commit

Permalink
fix: rename user to context user
Browse files Browse the repository at this point in the history
  • Loading branch information
frdomovic committed Jun 14, 2024
1 parent a46a72e commit ea66874
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/primitives/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct ClientKey {

#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct User {
pub struct ContextUser {
pub user_id: String,
pub joined_at: u64,
}
Expand Down
4 changes: 2 additions & 2 deletions crates/server/src/admin/handlers/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::sync::Arc;
use axum::extract::Path;
use axum::response::IntoResponse;
use axum::{Extension, Json};
use calimero_primitives::identity::{ClientKey, Context, User};
use calimero_primitives::identity::{ClientKey, Context, ContextUser};
use calimero_server_primitives::admin::ContextStorage;
use rand::RngCore;
use reqwest::StatusCode;
Expand Down Expand Up @@ -73,7 +73,7 @@ pub async fn get_context_client_keys_handler(
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
struct ContextUsers {
context_users: Vec<User>,
context_users: Vec<ContextUser>,
}

#[derive(Debug, Serialize, Deserialize)]
Expand Down

0 comments on commit ea66874

Please sign in to comment.