Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions core/services/gateway/handler_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,7 @@ func (hf *handlerFactory) NewHandler(
don := dons.ConnMgrs[0][0]
return vault.NewHandler(handlerConfig, donConfig, don, hf.capabilitiesRegistry, hf.workflowRegistrySyncer, hf.lggr, clockwork.NewRealClock(), hf.lf)
case ConfidentialRelayHandlerType:
// For backward compatibility, convert sharded config to legacy DONConfig
// using the first DON's first shard. TODO(CRE-1640): migrate to full
// shardedDONs/shardsConnMgrs support.
donConfig := shardedDONsToLegacy(dons.DONs[0])
don := dons.ConnMgrs[0][0]
return confidentialrelay.NewHandler(handlerConfig, donConfig, don, hf.lggr, clockwork.NewRealClock(), hf.lf)
return confidentialrelay.NewHandler(handlerConfig, dons, hf.lggr, clockwork.NewRealClock(), hf.lf)
default:
return nil, fmt.Errorf("unsupported handler type %s", handlerType)
}
Expand Down
Loading