mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:02:25 -05:00 
			
		
		
		
	ctx => innerctx
This commit is contained in:
		
					parent
					
						
							
								c12520167d
							
						
					
				
			
			
				commit
				
					
						a6fb93ae2a
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -140,7 +140,7 @@ func (p *processor) UpdateAvatar(ctx context.Context, avatar *multipart.FileHead | ||||||
| 		return nil, fmt.Errorf("UpdateAvatar: avatar with size %d exceeded max image size of %d bytes", avatar.Size, maxImageSize) | 		return nil, fmt.Errorf("UpdateAvatar: avatar with size %d exceeded max image size of %d bytes", avatar.Size, maxImageSize) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	dataFunc := func(ctx context.Context) (io.Reader, int, error) { | 	dataFunc := func(innerCtx context.Context) (io.Reader, int, error) { | ||||||
| 		f, err := avatar.Open() | 		f, err := avatar.Open() | ||||||
| 		return f, int(avatar.Size), err | 		return f, int(avatar.Size), err | ||||||
| 	} | 	} | ||||||
|  | @ -167,7 +167,7 @@ func (p *processor) UpdateHeader(ctx context.Context, header *multipart.FileHead | ||||||
| 		return nil, fmt.Errorf("UpdateHeader: header with size %d exceeded max image size of %d bytes", header.Size, maxImageSize) | 		return nil, fmt.Errorf("UpdateHeader: header with size %d exceeded max image size of %d bytes", header.Size, maxImageSize) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	dataFunc := func(ctx context.Context) (io.Reader, int, error) { | 	dataFunc := func(innerCtx context.Context) (io.Reader, int, error) { | ||||||
| 		f, err := header.Open() | 		f, err := header.Open() | ||||||
| 		return f, int(header.Size), err | 		return f, int(header.Size), err | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue