This commit is contained in:
arsvolkov committed 2026-06-11 16:54:48 +04:00
1 parent f1112e5a11
commit f6acddaa8d
36 files changed
+226 -499

No files matched your search

+4
View File
@@ -36,6 +36,10 @@ type DecortClient struct {
// Сlient builder
func New(cfg config.Config) *DecortClient {
if err := validators.ValidateConfig(cfg); err != nil {
panic(validators.ValidationErrors(validators.GetErrors(err)))
}
if cfg.Retries == 0 {
cfg.Retries = 5
}