From c4dc7a075cf54d5ffd3f8336a7515767610063c2 Mon Sep 17 00:00:00 2001 From: Caspian Baska Date: Wed, 26 Feb 2020 11:37:49 +1100 Subject: [PATCH] fix(discovery): correct argument to URI initializer --- shard.yml | 2 +- src/hound-dog/discovery.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shard.yml b/shard.yml index fd2ebdb..63b9048 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: hound-dog -version: 2.0.1 +version: 2.0.2 crystal: 0.33.0 license: MIT diff --git a/src/hound-dog/discovery.cr b/src/hound-dog/discovery.cr index 78c7720..eeef30b 100644 --- a/src/hound-dog/discovery.cr +++ b/src/hound-dog/discovery.cr @@ -24,7 +24,7 @@ module HoundDog def initialize( service : String, name : String = ULID.generate, - uri : URI | String = URI.new(ip: "127.0.0.1", port: 8080, scheme: "http") + uri : URI | String = URI.new(host: "127.0.0.1", port: 8080, scheme: "http") ) # Get service nodes @service_events = Service.new(