mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
整理代码
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user