File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ async fn main() -> Result<(), Error> {
196196 let config = config. clone ( ) ;
197197
198198 async move {
199- let addr = format ! ( "0.0.0.0 :{}" , config. grpc_port)
199+ let addr = format ! ( "{} :{}" , config . grpc_addr , config. grpc_port)
200200 . parse ( )
201201 . expect ( "Failed to parse address" ) ;
202202
Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ impl PushPool {
5757 pub async fn start ( & self ) -> Result < ( ) > {
5858 let mut handles = vec ! [ ] ;
5959
60- for _ in 0 ..self . config . push_threads {
60+ for _ in 0 ..self . config . push_threads . max ( 1 ) {
6161 let endpoint = self . config . worker_endpoint . clone ( ) ;
6262
6363 let callback_url = format ! (
64- "{}:{}" ,
64+ "http:// {}:{}" ,
6565 self . config. callback_addr, self . config. callback_port
6666 ) ;
6767
You can’t perform that action at this time.
0 commit comments