From 6a920c7287e7e747baf5b94e6eae7f50f0662164 Mon Sep 17 00:00:00 2001 From: Lauren Datz <105828115+ladatz@users.noreply.github.com> Date: Thu, 22 Jun 2023 13:17:16 -0400 Subject: [PATCH] Linting updates --- service_discovery/core/Cargo.toml | 2 +- service_discovery/proto/build.rs | 2 +- service_discovery/proto/chariott/v1/chariott_registry.proto | 4 ++-- .../proto/samples/v1/hello_world_service.proto | 6 +++--- service_discovery/proto/src/lib.rs | 2 +- service_discovery/proto_build/Cargo.toml | 2 +- .../samples/simple-discovery/consumer/Cargo.toml | 2 +- .../samples/simple-discovery/provider/Cargo.toml | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/service_discovery/core/Cargo.toml b/service_discovery/core/Cargo.toml index aa799763..ef0194c4 100644 --- a/service_discovery/core/Cargo.toml +++ b/service_discovery/core/Cargo.toml @@ -15,4 +15,4 @@ parking_lot = { workspace = true } proto-servicediscovery = { path = "../proto_build/"} [build-dependencies] -tonic-build = { workspace = true } \ No newline at end of file +tonic-build = { workspace = true } diff --git a/service_discovery/proto/build.rs b/service_discovery/proto/build.rs index d58954c0..0519d80c 100644 --- a/service_discovery/proto/build.rs +++ b/service_discovery/proto/build.rs @@ -6,4 +6,4 @@ fn main() -> Result<(), Box> { tonic_build::compile_protos("../proto/chariott/v1/chariott_registry.proto")?; tonic_build::compile_protos("../proto/samples/v1/hello_world_service.proto")?; Ok(()) -} \ No newline at end of file +} diff --git a/service_discovery/proto/chariott/v1/chariott_registry.proto b/service_discovery/proto/chariott/v1/chariott_registry.proto index e017a825..38414172 100644 --- a/service_discovery/proto/chariott/v1/chariott_registry.proto +++ b/service_discovery/proto/chariott/v1/chariott_registry.proto @@ -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) {} @@ -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; diff --git a/service_discovery/proto/samples/v1/hello_world_service.proto b/service_discovery/proto/samples/v1/hello_world_service.proto index f7371b34..37afbf5e 100644 --- a/service_discovery/proto/samples/v1/hello_world_service.proto +++ b/service_discovery/proto/samples/v1/hello_world_service.proto @@ -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 @@ -26,4 +26,4 @@ message HelloRequest { message HelloResponse { // The message that is returned: "Hello, " the name provided in the request string message = 1; -} \ No newline at end of file +} diff --git a/service_discovery/proto/src/lib.rs b/service_discovery/proto/src/lib.rs index 1c1cb268..e14ae8de 100644 --- a/service_discovery/proto/src/lib.rs +++ b/service_discovery/proto/src/lib.rs @@ -14,4 +14,4 @@ pub mod hello_world { #![allow(clippy::derive_partial_eq_without_eq)] tonic::include_proto!("hello_world"); } -} \ No newline at end of file +} diff --git a/service_discovery/proto_build/Cargo.toml b/service_discovery/proto_build/Cargo.toml index 6d664339..afd23f6c 100644 --- a/service_discovery/proto_build/Cargo.toml +++ b/service_discovery/proto_build/Cargo.toml @@ -14,4 +14,4 @@ tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } tonic = { workspace = true } [build-dependencies] -tonic-build = { workspace = true } \ No newline at end of file +tonic-build = { workspace = true } diff --git a/service_discovery/samples/simple-discovery/consumer/Cargo.toml b/service_discovery/samples/simple-discovery/consumer/Cargo.toml index 4fe20f8a..d5e30b84 100644 --- a/service_discovery/samples/simple-discovery/consumer/Cargo.toml +++ b/service_discovery/samples/simple-discovery/consumer/Cargo.toml @@ -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"] } \ No newline at end of file +tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/service_discovery/samples/simple-discovery/provider/Cargo.toml b/service_discovery/samples/simple-discovery/provider/Cargo.toml index 6e047da0..c5813f9d 100644 --- a/service_discovery/samples/simple-discovery/provider/Cargo.toml +++ b/service_discovery/samples/simple-discovery/provider/Cargo.toml @@ -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 } \ No newline at end of file +url = { workspace = true }