mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-10-31 01:05:08 +03:00 
			
		
		
		
	more debugging, trying to understand bootstrap issues
This commit is contained in:
		
							parent
							
								
									6c59ae862a
								
							
						
					
					
						commit
						efe6cec11a
					
				
					 2 changed files with 73 additions and 33 deletions
				
			
		|  | @ -183,6 +183,7 @@ func (p *peer) linkLoop() { | |||
| 			} | ||||
| 			p.sendSwitchMsg() | ||||
| 		case _ = <-tick.C: | ||||
| 			break             // FIXME disabled the below completely to test something | ||||
| 			pdinfo := p.dinfo // FIXME this is a bad workarond NPE on the next line | ||||
| 			if pdinfo != nil { | ||||
| 				dinfo := *pdinfo | ||||
|  | @ -332,7 +333,7 @@ func (p *peer) handleSwitchMsg(packet []byte) { | |||
| 		key:    p.box, | ||||
| 		coords: loc.getCoords(), | ||||
| 	} | ||||
| 	p.core.dht.peers <- &dinfo | ||||
| 	//p.core.dht.peers <- &dinfo | ||||
| 	p.dinfo = &dinfo | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Arceliar
						Arceliar