|
@@ -10,6 +10,7 @@ import ( |
|
|
"egg_im/pkg/logger" |
|
|
"egg_im/pkg/logger" |
|
|
"egg_im/pkg/pb" |
|
|
"egg_im/pkg/pb" |
|
|
"egg_im/pkg/urlwhitelist" |
|
|
"egg_im/pkg/urlwhitelist" |
|
|
|
|
|
"fmt" |
|
|
"net" |
|
|
"net" |
|
|
"os" |
|
|
"os" |
|
|
"os/signal" |
|
|
"os/signal" |
|
@@ -41,6 +42,7 @@ func main() { |
|
|
|
|
|
|
|
|
pb.RegisterLogicIntServer(server, &api.LogicIntServer{}) |
|
|
pb.RegisterLogicIntServer(server, &api.LogicIntServer{}) |
|
|
pb.RegisterLogicExtServer(server, &api.LogicExtServer{}) |
|
|
pb.RegisterLogicExtServer(server, &api.LogicExtServer{}) |
|
|
|
|
|
fmt.Println("logic::listenAddr>>>>", config.RPCListenAddr) |
|
|
listen, err := net.Listen("tcp", config.RPCListenAddr) |
|
|
listen, err := net.Listen("tcp", config.RPCListenAddr) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
panic(err) |
|
|
panic(err) |
|
|