You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some API that would allow to skip default value initialization if non-default one is passed
require'dry-configurable'RAISE_EXCEPTION=->{raise}classConfigincludeDry::Configurablesetting:default_failure,default: ->{RAISE_EXCEPTION.call}endConfig.new(default_failure: 'does not fail')
My environment
Affects my production application: Kinda, PR to karafka was needed
Ruby version: 3.0.2
OS: linux
The text was updated successfully, but these errors were encountered:
Describe the bug
Right now
default:
value is evaluated at the time of declaration, so object is always created. For karafka loggerthis caused issues with initialization on RO filesystem (1, 2) even if non-default logger was passed.
In waterdrop it's kinda workarounded via
but it's unnecessary complication and with real constructor would be even less readable.
To Reproduce
Expected behavior
Some API that would allow to skip default value initialization if non-default one is passed
My environment
The text was updated successfully, but these errors were encountered: