|
@@ -20,9 +20,6 @@ import ( |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func main() { |
|
|
func main() { |
|
|
go func() { |
|
|
|
|
|
http.ListenAndServe(":10001", nil) |
|
|
|
|
|
}() |
|
|
|
|
|
//config.Init() |
|
|
//config.Init() |
|
|
db.Init() |
|
|
db.Init() |
|
|
|
|
|
|
|
@@ -37,6 +34,9 @@ func main() { |
|
|
}() |
|
|
}() |
|
|
|
|
|
|
|
|
//runtime.SetBlockProfileRate(1) |
|
|
//runtime.SetBlockProfileRate(1) |
|
|
|
|
|
go func() { |
|
|
|
|
|
http.ListenAndServe(":10001", nil) |
|
|
|
|
|
}() |
|
|
|
|
|
|
|
|
pb.RegisterBusinessIntServer(server, &api.BusinessIntServer{}) |
|
|
pb.RegisterBusinessIntServer(server, &api.BusinessIntServer{}) |
|
|
pb.RegisterBusinessExtServer(server, &api.BusinessExtServer{}) |
|
|
pb.RegisterBusinessExtServer(server, &api.BusinessExtServer{}) |
|
|