mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix debug builds after 64060a4
				
					
				
			This commit is contained in:
		
							parent
							
								
									64060a447c
								
							
						
					
					
						commit
						a9907a7878
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -50,7 +50,7 @@ func StartProfiler(log *log.Logger) error {
 | 
			
		|||
func (c *Core) Init() {
 | 
			
		||||
	bpub, bpriv := newBoxKeys()
 | 
			
		||||
	spub, spriv := newSigKeys()
 | 
			
		||||
	c.init(bpub, bpriv, spub, spriv, metadata{})
 | 
			
		||||
	c.init(bpub, bpriv, spub, spriv)
 | 
			
		||||
	c.switchTable.start()
 | 
			
		||||
	c.router.start()
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -84,7 +84,7 @@ func (c *Core) DEBUG_getPeers() *peers {
 | 
			
		|||
func (ps *peers) DEBUG_newPeer(box boxPubKey, sig sigPubKey, link boxSharedKey) *peer {
 | 
			
		||||
	//in <-chan []byte,
 | 
			
		||||
	//out chan<- []byte) *peer {
 | 
			
		||||
	return ps.newPeer(&box, &sig, &link, "(simulator)", metadata{}) //, in, out)
 | 
			
		||||
	return ps.newPeer(&box, &sig, &link, "(simulator)") //, in, out)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
| 
						 | 
				
			
			@ -356,7 +356,7 @@ func (c *Core) DEBUG_init(bpub []byte,
 | 
			
		|||
	copy(boxPriv[:], bpriv)
 | 
			
		||||
	copy(sigPub[:], spub)
 | 
			
		||||
	copy(sigPriv[:], spriv)
 | 
			
		||||
	c.init(&boxPub, &boxPriv, &sigPub, &sigPriv, metadata{})
 | 
			
		||||
	c.init(&boxPub, &boxPriv, &sigPub, &sigPriv)
 | 
			
		||||
 | 
			
		||||
	if err := c.router.start(); err != nil {
 | 
			
		||||
		panic(err)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue