Skip to content

Commit

Permalink
Revert over eager livekit renames
Browse files Browse the repository at this point in the history
  • Loading branch information
mikayla-maki committed Dec 3, 2024
1 parent 1f1c274 commit d9b5af2
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions crates/collab/.env.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ HTTP_PORT = 8080
API_TOKEN = "secret"
INVITE_LINK_PREFIX = "http://localhost:3000/invites/"
ZED_ENVIRONMENT = "development"
livekit_SERVER = "http://localhost:7880"
livekit_KEY = "devkey"
livekit_SECRET = "secret"
LIVEKIT_SERVER = "http://localhost:7880"
LIVEKIT_KEY = "devkey"
LIVEKIT_SECRET = "secret"
BLOB_STORE_ACCESS_KEY = "the-blob-store-access-key"
BLOB_STORE_SECRET_KEY = "the-blob-store-secret-key"
BLOB_STORE_BUCKET = "the-extensions-bucket"
Expand Down
2 changes: 1 addition & 1 deletion crates/collab/k8s/collab.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ spec:
secretKeyRef:
name: zed-client
key: checksum-seed
- name: livekit_SERVER
- name: LIVEKIT_SERVER
valueFrom:
secretKeyRef:
name: livekit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CREATE INDEX "index_contacts_user_id_b" ON "contacts" ("user_id_b");

CREATE TABLE "rooms" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT,
"livekit_room" VARCHAR NOT NULL,
"live_kit_room" VARCHAR NOT NULL,
"environment" VARCHAR,
"channel_id" INTEGER REFERENCES channels (id) ON DELETE CASCADE
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE IF NOT EXISTS "rooms" (
"id" SERIAL PRIMARY KEY,
"livekit_room" VARCHAR NOT NULL
"live_kit_room" VARCHAR NOT NULL
);

ALTER TABLE "projects"
Expand Down
4 changes: 2 additions & 2 deletions crates/collab/src/tests/test_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub struct ContactsSummary {

impl TestServer {
pub async fn start(deterministic: BackgroundExecutor) -> Self {
static NEXT_livekit_SERVER_ID: AtomicUsize = AtomicUsize::new(0);
static NEXT_LIVEKIT_SERVER_ID: AtomicUsize = AtomicUsize::new(0);

let use_postgres = env::var("USE_POSTGRES").ok();
let use_postgres = use_postgres.as_deref();
Expand All @@ -88,7 +88,7 @@ impl TestServer {
} else {
TestDb::sqlite(deterministic.clone())
};
let livekit_server_id = NEXT_livekit_SERVER_ID.fetch_add(1, SeqCst);
let livekit_server_id = NEXT_LIVEKIT_SERVER_ID.fetch_add(1, SeqCst);
let livekit_server = livekit_client::test::TestServer::create(
format!("http://livekit.{}.test", livekit_server_id),
format!("devkey-{}", livekit_server_id),
Expand Down
6 changes: 3 additions & 3 deletions crates/livekit_client/examples/test_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ fn main() {
}],
}]);

let livekit_url = std::env::var("livekit_URL").unwrap_or("http://localhost:7880".into());
let livekit_key = std::env::var("livekit_KEY").unwrap_or("devkey".into());
let livekit_secret = std::env::var("livekit_SECRET").unwrap_or("secret".into());
let livekit_url = std::env::var("LIVEKIT_URL").unwrap_or("http://localhost:7880".into());
let livekit_key = std::env::var("LIVEKIT_KEY").unwrap_or("devkey".into());
let livekit_secret = std::env::var("LIVEKIT_SECRET").unwrap_or("secret".into());
let height = px(800.);
let width = px(800.);

Expand Down
6 changes: 3 additions & 3 deletions crates/proto/proto/zed.proto
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ message CreateRoom {}

message CreateRoomResponse {
Room room = 1;
optional LiveKitConnectionInfo livekit_connection_info = 2;
optional LiveKitConnectionInfo live_kit_connection_info = 2;
}

message JoinRoom {
Expand All @@ -378,7 +378,7 @@ message JoinRoom {
message JoinRoomResponse {
Room room = 1;
optional uint64 channel_id = 2;
optional LiveKitConnectionInfo livekit_connection_info = 3;
optional LiveKitConnectionInfo live_kit_connection_info = 3;
}

message RejoinRoom {
Expand Down Expand Up @@ -429,7 +429,7 @@ message Room {
repeated Participant participants = 2;
repeated PendingParticipant pending_participants = 3;
repeated Follower followers = 4;
string livekit_room = 5;
string live_kit_room = 5;
}

message Participant {
Expand Down

0 comments on commit d9b5af2

Please sign in to comment.