mirror of
				https://source.quilibrium.com/quilibrium/ceremonyclient.git
				synced 2025-11-04 00:27:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			349 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			349 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build !cgo || nowatchdog
 | 
						|
 | 
						|
package connmgr
 | 
						|
 | 
						|
func registerWatchdog(func()) (unregister func()) {
 | 
						|
	return nil
 | 
						|
}
 | 
						|
 | 
						|
// WithEmergencyTrim is an option to enable trimming connections on memory emergency.
 | 
						|
func WithEmergencyTrim(enable bool) Option {
 | 
						|
	return func(cfg *config) error {
 | 
						|
		log.Warn("platform doesn't support go-watchdog")
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
}
 |