Initialise the command stuff
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/micro/go-micro/cmd"
|
||||
"github.com/micro/go-micro/registry"
|
||||
"github.com/micro/go-micro/selector"
|
||||
)
|
||||
@@ -26,6 +27,7 @@ type blackListSelector struct {
|
||||
}
|
||||
|
||||
func init() {
|
||||
cmd.Selectors["blacklist"] = NewSelector
|
||||
rand.Seed(time.Now().Unix())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user