Skip to content

Commit

Permalink
support meta field for service
Browse files Browse the repository at this point in the history
  • Loading branch information
armersong committed Jan 2, 2025
1 parent f1d8fb5 commit a46262a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rs-consul"
version = "0.8.2"
version = "0.8.3"
authors = ["Roblox"]
edition = "2021"
description = "This crate provides access to a set of strongly typed apis to interact with consul (https://www.consul.io/)"
Expand Down
2 changes: 2 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ pub struct Service {
pub port: u16,
/// Tags assigned to the service instance.
pub tags: Vec<String>,
/// Meta assigned to the service instance.
pub meta: HashMap<String, String>,
}

pub(crate) fn serialize_duration_as_string<S>(
Expand Down

0 comments on commit a46262a

Please sign in to comment.