fixed typos and pass the correct custom abortCtx
This commit is contained in:
		
							parent
							
								
									24c4b63960
								
							
						
					
					
						commit
						04a3dc7bb7
					
				
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| 
						 | 
				
			
			@ -5,9 +5,9 @@
 | 
			
		|||
// For compatibility with earlier PocketBase versions and to prevent
 | 
			
		||||
// unnecessary breaking changes, this package is based and implemented
 | 
			
		||||
// as a minimal, stripped down version of the previously used gocloud.dev/blob.
 | 
			
		||||
// While there is no promise that it won't diverge in the future to accomodate
 | 
			
		||||
// While there is no promise that it won't diverge in the future to accommodate
 | 
			
		||||
// better some PocketBase specific use cases, currently it copies and
 | 
			
		||||
// tries to follow as close as possible the same implementaitons,
 | 
			
		||||
// tries to follow as close as possible the same implementations,
 | 
			
		||||
// conventions and rules for the key escaping/unescaping, blob read/write
 | 
			
		||||
// interfaces and struct options as gocloud.dev/blob, therefore the
 | 
			
		||||
// credits goes to the original Go Cloud Development Kit Authors.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -235,7 +235,7 @@ func (u *Uploader) multipartAbort(ctx context.Context, optReqFuncs ...func(*http
 | 
			
		|||
 | 
			
		||||
	query := url.Values{"uploadId": []string{u.uploadId}}
 | 
			
		||||
 | 
			
		||||
	req, err := http.NewRequestWithContext(ctx, http.MethodDelete, u.S3.URL(u.Key+"?"+query.Encode()), nil)
 | 
			
		||||
	req, err := http.NewRequestWithContext(abortCtx, http.MethodDelete, u.S3.URL(u.Key+"?"+query.Encode()), nil)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue