Remove TypeLiteral from ExchangeClientSupplier binding
No need to use TypeLiteral Since ExchangeClientSupplier is not generic
@@ -129,7 +129,6 @@ import com.google.inject.Binder;
import com.google.inject.Key;
import com.google.inject.Provides;
import com.google.inject.Scopes;
-import com.google.inject.TypeLiteral;
import io.airlift.concurrent.BoundedExecutor;
import io.airlift.configuration.AbstractConfigurationAwareModule;
import io.airlift.slice.Slice;
@@ -323,7 +322,7 @@ public class ServerMainModule
jaxrsBinder(binder).bind(PagesResponseWriter.class);
// exchange client
- binder.bind(new TypeLiteral<ExchangeClientSupplier>() {}).to(ExchangeClientFactory.class).in(Scopes.SINGLETON);
+ binder.bind(ExchangeClientSupplier.class).to(ExchangeClientFactory.class).in(Scopes.SINGLETON);
httpClientBinder(binder).bindHttpClient("exchange", ForExchange.class)
.withTracing()
.withFilter(GenerateTraceTokenRequestFilter.class)
