Issue 527 - feat: update DeDi registry plugin to handle new response structure
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user