package org.agt.module.license.framework.canal;

import lombok.RequiredArgsConstructor;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class CanalRunner implements CommandLineRunner {

    private final CanalService canalService;

    @Override
    public void run(String... args) {
        canalService.startCanalListener();
    }
}
