Skip to content

Commit

Permalink
fix(discovery): correct argument to URI initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
caspiano committed Feb 26, 2020
1 parent 8d16f58 commit c4dc7a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: hound-dog
version: 2.0.1
version: 2.0.2
crystal: 0.33.0
license: MIT

Expand Down
2 changes: 1 addition & 1 deletion src/hound-dog/discovery.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c4dc7a0

Please sign in to comment.