Skip to content

Commit

Permalink
0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimryndin committed Feb 8, 2024
1 parent b03b7bf commit 7d29be8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ body:
label: Which version of Goral do you run (`goral --version`)?
multiple: false
options:
- 0.1.2
- 0.1.1
- 0.1.0
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "goral"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
author = "Maksim Ryndin"
license = "Apache-2.0"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ You can install Goral

For example, for Linux
```sh
wget https://github.com/maksimryndin/goral/releases/download/0.1.1/goral-0.1.1-x86_64-unknown-linux-gnu.tar.gz
tar -xzf goral-0.1.1-x86_64-unknown-linux-gnu.tar.gz
sudo mv goral-0.1.1-x86_64-unknown-linux-gnu/goral /usr/local/bin/goral
wget https://github.com/maksimryndin/goral/releases/download/0.1.2/goral-0.1.2-x86_64-unknown-linux-gnu.tar.gz
tar -xzf goral-0.1.2-x86_64-unknown-linux-gnu.tar.gz
sudo mv goral-0.1.2-x86_64-unknown-linux-gnu/goral /usr/local/bin/goral
rm -rf goral*
```

2) from source (you need [Rust](https://www.rust-lang.org/tools/install)) with a command
```sh
git clone --depth 1 --branch 0.1.1 https://github.com/maksimryndin/goral
git clone --depth 1 --branch 0.1.2 https://github.com/maksimryndin/goral
cd goral
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target <target triple>
```
Expand Down
2 changes: 1 addition & 1 deletion src/services/kv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use tokio::task::JoinHandle;

pub const KV_SERVICE_NAME: &str = "kv";

fn unique_keys(data: &Vec<(String, Value)>) -> Result<(), serde_valid::validation::Error> {
fn unique_keys(data: &[(String, Value)]) -> Result<(), serde_valid::validation::Error> {
let keys: HashSet<&String> = data.iter().map(|(k, _)| k).collect();
if keys.len() < data.len() {
Err(serde_valid::validation::Error::Custom(
Expand Down
2 changes: 1 addition & 1 deletion src/services/metrics/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use serde_valid::Validate;
use url::Url;

pub(super) fn scrape_push_rule(
endpoints: &Vec<Target>,
endpoints: &[Target],
push_interval_secs: &u16,
scrape_interval_secs: &u16,
scrape_timeout_ms: &u32,
Expand Down

0 comments on commit 7d29be8

Please sign in to comment.