mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:12:25 -05:00 
			
		
		
		
	[bugfix] Lock when checking/creating notifs to avoid race (#2890)
* [bugfix] Lock when checking/creating notifs to avoid race * test notif spam
This commit is contained in:
		
					parent
					
						
							
								725a21b027
							
						
					
				
			
			
				commit
				
					
						ebec95a522
					
				
			
		
					 15 changed files with 290 additions and 133 deletions
				
			
		|  | @ -25,16 +25,16 @@ import ( | |||
| 	"github.com/superseriousbusiness/gotosocial/internal/typeutils" | ||||
| ) | ||||
| 
 | ||||
| // surface wraps functions for 'surfacing' the result | ||||
| // Surface wraps functions for 'surfacing' the result | ||||
| // of processing a message, eg: | ||||
| //   - timelining a status | ||||
| //   - removing a status from timelines | ||||
| //   - sending a notification to a user | ||||
| //   - sending an email | ||||
| type surface struct { | ||||
| 	state       *state.State | ||||
| 	converter   *typeutils.Converter | ||||
| 	stream      *stream.Processor | ||||
| 	filter      *visibility.Filter | ||||
| 	emailSender email.Sender | ||||
| type Surface struct { | ||||
| 	State       *state.State | ||||
| 	Converter   *typeutils.Converter | ||||
| 	Stream      *stream.Processor | ||||
| 	Filter      *visibility.Filter | ||||
| 	EmailSender email.Sender | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue