feat mysql
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
type IService interface {
|
||||
Init(addr string, port int)
|
||||
Init(addr string, port int32)
|
||||
Close()
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ type Base struct {
|
||||
wg *sync.WaitGroup
|
||||
}
|
||||
|
||||
func (s *Base) Init(addr string, port int) {
|
||||
func (s *Base) Init(addr string, port int32) {
|
||||
s.wg = &sync.WaitGroup{}
|
||||
s.wg.Add(1)
|
||||
s.SID = utils.SnowflakeInstance().Generate().Int64()
|
||||
|
||||
Reference in New Issue
Block a user