Skip to content

Commit

Permalink
Make description always serialized
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Nov 2, 2023
1 parent bf32785 commit 89b0cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async-nats/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub struct Info {
/// Service id.
pub id: String,
/// Service description.
pub description: Option<String>,
pub description: String,
/// Service version.
pub version: String,
/// Additional metadata
Expand Down Expand Up @@ -354,7 +354,7 @@ impl Service {
kind: "io.nats.micro.v1.info_response".to_string(),
name: config.name.clone(),
id: id.clone(),
description: config.description.clone(),
description: config.description.clone().unwrap_or_default(),
version: config.version.clone(),
metadata: config.metadata.clone().unwrap_or_default(),
endpoints: Vec::new(),
Expand Down

0 comments on commit 89b0cef

Please sign in to comment.