OSDN Git Service

fix init sql twice
authorHAOYUatHZ <haoyu@protonmail.com>
Wed, 3 Jul 2019 03:07:20 +0000 (11:07 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Wed, 3 Jul 2019 03:07:20 +0000 (11:07 +0800)
federation/porter.go [moved from federation/synchron/porter.go with 65% similarity]

similarity index 65%
rename from federation/synchron/porter.go
rename to federation/porter.go
index 0d33e99..5bba49a 100644 (file)
@@ -1,4 +1,4 @@
-package synchron
+package federation
 
 import (
        "reflect"
@@ -21,8 +21,8 @@ func (p *Porter) AttachCallback(f func(p *Porter) error) {
 
 func (p *Porter) Run() {
        for _, f := range p.Callbacks {
-               log.Info("Running...", runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name())
+               log.Info("Running func: ", runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name())
                f(p)
-               log.Info(runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name(), " done.")
+               log.Info("Func done: ", runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name())
        }
 }