spring-cloud / spring-cloud-commons

Common classes used in different Spring Cloud implementations
Apache License 2.0
707 stars 704 forks source link

Use newCachedTreadPool() instead of newSingleThreadExecutor() in InetUtils #1365

Closed stsypanov closed 1 month ago

stsypanov commented 3 months ago

See https://github.com/spring-cloud/spring-cloud-commons/issues/1364

OlgaMaciaszek commented 2 months ago

Fixes gh-1364.

stsypanov commented 1 month ago

@OlgaMaciaszek done! I've also removed TODO comment as the executor is shut down in close() method and shutting it down before calling close() doesn't make sence if we use newCachedThreadPool().