整理代码

This commit is contained in:
mcy
2018-09-14 11:45:52 +08:00
parent f3d1c8b754
commit db56effd91

View File

@@ -156,18 +156,14 @@ public class CanalAdapterKafkaWorker extends AbstractCanalAdapterWorker {
TimeUnit.SECONDS.sleep(1L); TimeUnit.SECONDS.sleep(1L);
} }
} }
} catch ( } catch (Exception e) {
Exception e) {
logger.error(e.getMessage(), e); logger.error(e.getMessage(), e);
} }
} }
executor.shutdown(); executor.shutdown();
try try {
{
connector.unsubscribe(); connector.unsubscribe();
} catch (WakeupException e) { } catch (WakeupException e) {
// No-op. Continue process // No-op. Continue process