Skip to content

Commit 5ddc681

Browse files
committed
fix: set HookRunReplication function in processRun and remove duplicate in runPipeline
1 parent ea972ba commit 5ddc681

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/sling/sling_run.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ func processRun(c *g.CliSC) (ok bool, err error) {
4949
showExamples := false
5050
selectStreams := []string{}
5151

52+
// set function here due to scoping
53+
sling.HookRunReplication = runReplication
54+
5255
// recover from panic
5356
defer func() {
5457
if r := recover(); r != nil {
@@ -633,9 +636,6 @@ func runPipeline(pipelineCfgPath string) (err error) {
633636
Track("run")
634637
}()
635638

636-
// set function here due to scoping
637-
sling.HookRunReplication = runReplication
638-
639639
pipeline.Context = ctx
640640
err = pipeline.Execute()
641641

0 commit comments

Comments
 (0)