registry: remove unneeded time.Duration() Upstream-commit: 8f909221f51a4b1d23f5829b68debd0782293cc7 Component: engine