mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 01:12:24 -05:00 
			
		
		
		
	[performance] cached oauth database types (#2838)
* update token + client code to use struct caches * add code comments * slight tweak to default mem ratios * fix envparsing * add appropriate invalidate hooks * update the tokenstore sweeping function to rely on caches * update to use PutClient() * add ClientID to list of token struct indices
This commit is contained in:
		
					parent
					
						
							
								8b30709791
							
						
					
				
			
			
				commit
				
					
						f79d50b9b2
					
				
			
		
					 18 changed files with 428 additions and 67 deletions
				
			
		|  | @ -75,7 +75,7 @@ func (p *Processor) AppCreate(ctx context.Context, authed *oauth.Auth, form *api | |||
| 	} | ||||
| 
 | ||||
| 	// chuck it in the db | ||||
| 	if err := p.state.DB.Put(ctx, oc); err != nil { | ||||
| 	if err := p.state.DB.PutClient(ctx, oc); err != nil { | ||||
| 		return nil, gtserror.NewErrorInternalError(err) | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue