Issue 527 - feat: update DeDi registry plugin to handle new response structure

This commit is contained in:
ameersohel45
2025-10-11 00:41:52 +05:30
parent 03ea297e51
commit 55d81fed85
4 changed files with 104 additions and 97 deletions

View File

@@ -31,6 +31,8 @@ func (d dediRegistryProvider) New(ctx context.Context, config map[string]string)
if timeoutStr, exists := config["timeout"]; exists && timeoutStr != "" {
if timeout, err := strconv.Atoi(timeoutStr); err == nil {
dediConfig.Timeout = timeout
} else {
log.Warnf(ctx, "Invalid timeout value '%s', using default", timeoutStr)
}
}