Initialise the command stuff

This commit is contained in:
Asim
2015-12-09 19:38:50 +00:00
parent 2753520ee4
commit 8e2dbb8997
3 changed files with 16 additions and 2 deletions

View File

@@ -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())
}