From a8872ab9bb67c49ff2f32d876746085cb9554c61 Mon Sep 17 00:00:00 2001 From: Julien Reichardt Date: Sun, 14 Apr 2019 18:59:23 +0200 Subject: [PATCH] Cast port to Int32 --- src/prefix/config.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefix/config.cr b/src/prefix/config.cr index 4faa9d3..8b76879 100644 --- a/src/prefix/config.cr +++ b/src/prefix/config.cr @@ -1,7 +1,7 @@ struct Prefix::Config getter sources : Hash(String, String) { data["sources"].as_h.transform_values &.as_s } getter host : String { data["host"].as_s } - getter port : String { data["port"].as_s } + getter port : Int32 { data["port"].as_i } getter data : CON::Any def initialize(content : String)