mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 00:20:46 +00:00 
			
		
		
		
	use shared_ptr for CreateDatabaseStore
This commit is contained in:
		
							parent
							
								
									8c47bf9dd3
								
							
						
					
					
						commit
						1e74ff8a85
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -740,7 +740,7 @@ namespace data
 | 
			
		|||
				LogPrint ("Requested RouterInfo ", key, " found");
 | 
			
		||||
				router->LoadBuffer ();
 | 
			
		||||
				if (router->GetBuffer ()) 
 | 
			
		||||
					replyMsg = CreateDatabaseStoreMsg (router.get ());
 | 
			
		||||
					replyMsg = CreateDatabaseStoreMsg (router);
 | 
			
		||||
			}
 | 
			
		||||
		
 | 
			
		||||
			if (!replyMsg)
 | 
			
		||||
| 
						 | 
				
			
			@ -874,7 +874,7 @@ namespace data
 | 
			
		|||
			{
 | 
			
		||||
				uint32_t replyToken = i2p::context.GetRandomNumberGenerator ().GenerateWord32 ();
 | 
			
		||||
				LogPrint ("Publishing our RouterInfo to ", floodfill->GetIdentHashAbbreviation (), ". reply token=", replyToken);
 | 
			
		||||
				transports.SendMessage (floodfill->GetIdentHash (), CreateDatabaseStoreMsg ((RouterInfo *)nullptr, replyToken));	
 | 
			
		||||
				transports.SendMessage (floodfill->GetIdentHash (), CreateDatabaseStoreMsg (std::make_shared<RouterInfo>(nullptr), replyToken));	
 | 
			
		||||
				excluded.insert (floodfill->GetIdentHash ());
 | 
			
		||||
			}
 | 
			
		||||
		}	
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue