Use direct Executor instead of ExecutorService
@@ -44,7 +44,7 @@ import static com.facebook.presto.spi.type.TimestampType.TIMESTAMP;
import static com.facebook.presto.spi.type.TimestampWithTimeZoneType.TIMESTAMP_WITH_TIME_ZONE;
import static com.facebook.presto.spi.type.VarbinaryType.VARBINARY;
import static com.facebook.presto.spi.type.Varchars.isVarcharType;
-import static com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService;
+import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
import static java.util.Locale.ENGLISH;
public class MySqlClient
@@ -104,7 +104,7 @@ public class MySqlClient
{
// Abort connection before closing. Without this, the MySQL driver
// attempts to drain the connection by reading all the results.
- connection.abort(newDirectExecutorService());
+ connection.abort(directExecutor());
}
@Override
