Skip to content

Commit

Permalink
Migrate Control Plane codegen to quickwit-proto crate (#3678)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilload authored Jul 24, 2023
1 parent fda33ae commit 3e97d0a
Show file tree
Hide file tree
Showing 51 changed files with 474 additions and 551 deletions.
5 changes: 0 additions & 5 deletions quickwit/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 quickwit/quickwit-control-plane/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ quickwit-actors = { workspace = true }
quickwit-cluster = { workspace = true }
quickwit-common = { workspace = true }
quickwit-config = { workspace = true }
quickwit-grpc-clients = { workspace = true }
quickwit-indexing = { workspace = true }
quickwit-metastore = { workspace = true }
quickwit-proto = { workspace = true }
Expand All @@ -50,6 +49,7 @@ quickwit-cluster = { workspace = true, features = ["testsuite"] }
quickwit-common = { workspace = true, features = ["testsuite"] }
quickwit-config = { workspace = true, features = ["testsuite"] }
quickwit-metastore = { workspace = true, features = ["testsuite"] }
quickwit-proto = { workspace = true, features = ["testsuite"] }
quickwit-storage = { workspace = true, features = ["testsuite"] }

[build-dependencies]
Expand Down
31 changes: 0 additions & 31 deletions quickwit/quickwit-control-plane/build.rs

This file was deleted.

4 changes: 2 additions & 2 deletions quickwit/quickwit-control-plane/src/control_plane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
use anyhow::Context;
use async_trait::async_trait;
use quickwit_actors::{Actor, ActorContext, ActorExitStatus, Handler, Mailbox};
use quickwit_proto::control_plane::{NotifyIndexChangeRequest, NotifyIndexChangeResponse};
use tracing::debug;

use crate::scheduler::IndexingScheduler;
use crate::{NotifyIndexChangeRequest, NotifyIndexChangeResponse};

#[derive(Debug)]
pub struct ControlPlane {
Expand Down Expand Up @@ -51,7 +51,7 @@ impl ControlPlane {

#[async_trait]
impl Handler<NotifyIndexChangeRequest> for ControlPlane {
type Reply = crate::Result<NotifyIndexChangeResponse>;
type Reply = quickwit_proto::control_plane::Result<NotifyIndexChangeResponse>;

async fn handle(
&mut self,
Expand Down
140 changes: 0 additions & 140 deletions quickwit/quickwit-control-plane/src/grpc_adapter.rs

This file was deleted.

4 changes: 2 additions & 2 deletions quickwit/quickwit-control-plane/src/indexing_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ mod tests {
FileSourceParams, KafkaSourceParams, SourceConfig, SourceInputFormat, SourceParams,
CLI_INGEST_SOURCE_ID, INGEST_API_SOURCE_ID,
};
use quickwit_proto::indexing::IndexingTask;
use quickwit_proto::{IndexUid, IndexingServiceClient};
use quickwit_proto::indexing::{IndexingServiceClient, IndexingTask};
use quickwit_proto::IndexUid;
use rand::seq::SliceRandom;
use serde_json::json;
use tonic::transport::Endpoint;
Expand Down
Loading

0 comments on commit 3e97d0a

Please sign in to comment.