mirror of
				https://github.com/CPunch/gopenfusion.git
				synced 2025-10-31 05:10:13 +00:00 
			
		
		
		
	use passed context.Context
This commit is contained in:
		| @@ -28,7 +28,7 @@ func makeDummyPeer(ctx context.Context, is *is.I, recv chan<- *cnet.PacketEvent) | ||||
| 	conn, err := net.Dial("tcp", fmt.Sprintf("127.0.0.1:%d", loginPort)) | ||||
| 	is.NoErr(err) | ||||
|  | ||||
| 	peer := cnet.NewPeer(context.Background(), conn) | ||||
| 	peer := cnet.NewPeer(ctx, conn) | ||||
| 	go func() { | ||||
| 		peer.Handler(recv) | ||||
| 	}() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user