I had a pretty unfortunate issue when directly setting the config value for heartbeat without an explicit typecasting: Hutch::Config.set(:heartbeat, ENV.fetch("HUTCH_HEARTBEAT", 30)) but the ENV var was obviously a string and it caused some failures when publishing messages. Since the type is explicitly declared on a config level, I believe the desired behaviour would be to handle type-casting inside set method as well.
I had a pretty unfortunate issue when directly setting the config value for
heartbeat
without an explicit typecasting:Hutch::Config.set(:heartbeat, ENV.fetch("HUTCH_HEARTBEAT", 30))
but the ENV var was obviously a string and it caused some failures when publishing messages. Since the type is explicitly declared on a config level, I believe the desired behaviour would be to handle type-casting insideset
method as well.