Skip to content

Commit

Permalink
Linting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ladatz committed Jun 22, 2023
1 parent 3373d77 commit 6a920c7
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion service_discovery/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ parking_lot = { workspace = true }
proto-servicediscovery = { path = "../proto_build/"}

[build-dependencies]
tonic-build = { workspace = true }
tonic-build = { workspace = true }
2 changes: 1 addition & 1 deletion service_discovery/proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::compile_protos("../proto/chariott/v1/chariott_registry.proto")?;
tonic_build::compile_protos("../proto/samples/v1/hello_world_service.proto")?;
Ok(())
}
}
4 changes: 2 additions & 2 deletions service_discovery/proto/chariott/v1/chariott_registry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ service Registry {

// Discover, or retrieve the metadata for a single service given its fully qualified name
rpc DiscoverService(DiscoverServiceRequest) returns (DiscoverServiceResponse) {}

// Discover a list of services given their namespace
rpc DiscoverByNamespace(DiscoverByNamespaceRequest) returns (DiscoverByNamespaceResponse) {}

Expand All @@ -39,7 +39,7 @@ message ServiceMetadata {

// Status of a registration operation
enum RegistrationStatus {
// An entry did not exist in the service registry for this
// An entry did not exist in the service registry for this
NEWLY_REGISTERED = 0;
// An entry already existed in the service registry and it has now been updated (overwritten)
UPDATED = 1;
Expand Down
6 changes: 3 additions & 3 deletions service_discovery/proto/samples/v1/hello_world_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
syntax = "proto3";
package hello_world;

// The service entry point to the Hello World service. This simple service only has one method to
// The service entry point to the Hello World service. This simple service only has one method to
// show the basic flow of applications calling one another
service HelloWorld {
// Method which just logs and returns a message "Hello, {input string}" when it is called
rpc SayHello(HelloRequest) returns (HelloResponse);
rpc SayHello(HelloRequest) returns (HelloResponse);
}

// Representation of a request with the "name" or string that you would like to say hello to
Expand All @@ -26,4 +26,4 @@ message HelloRequest {
message HelloResponse {
// The message that is returned: "Hello, " the name provided in the request
string message = 1;
}
}
2 changes: 1 addition & 1 deletion service_discovery/proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ pub mod hello_world {
#![allow(clippy::derive_partial_eq_without_eq)]
tonic::include_proto!("hello_world");
}
}
}
2 changes: 1 addition & 1 deletion service_discovery/proto_build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
tonic = { workspace = true }

[build-dependencies]
tonic-build = { workspace = true }
tonic-build = { workspace = true }
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ proto-servicediscovery = { path = "../../../proto_build/"}
tokio = { workspace = true, features = ["rt-multi-thread", "time"] }
tonic = { workspace = true }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
tonic = { workspace = true }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
url = { workspace = true }
url = { workspace = true }

0 comments on commit 6a920c7

Please sign in to comment.