driver/swift: Fix go vet warning
Driver was passing connections by copying. Storing `swift.Connection` as pointer to fix the warnings. Ref: #2030. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>master
							parent
							
								
									994d1a56ff
								
							
						
					
					
						commit
						a994f35657
					
				|  | @ -108,7 +108,7 @@ func (factory *swiftDriverFactory) Create(parameters map[string]interface{}) (st | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type driver struct { | type driver struct { | ||||||
| 	Conn                 swift.Connection | 	Conn                 *swift.Connection | ||||||
| 	Container            string | 	Container            string | ||||||
| 	Prefix               string | 	Prefix               string | ||||||
| 	BulkDeleteSupport    bool | 	BulkDeleteSupport    bool | ||||||
|  | @ -177,7 +177,7 @@ func New(params Parameters) (*Driver, error) { | ||||||
| 		TLSClientConfig:     &tls.Config{InsecureSkipVerify: params.InsecureSkipVerify}, | 		TLSClientConfig:     &tls.Config{InsecureSkipVerify: params.InsecureSkipVerify}, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	ct := swift.Connection{ | 	ct := &swift.Connection{ | ||||||
| 		UserName:       params.Username, | 		UserName:       params.Username, | ||||||
| 		ApiKey:         params.Password, | 		ApiKey:         params.Password, | ||||||
| 		AuthUrl:        params.AuthURL, | 		AuthUrl:        params.AuthURL, | ||||||
|  | @ -888,7 +888,7 @@ func (w *writer) waitForSegmentsToShowUp() error { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type segmentWriter struct { | type segmentWriter struct { | ||||||
| 	conn          swift.Connection | 	conn          *swift.Connection | ||||||
| 	container     string | 	container     string | ||||||
| 	segmentsPath  string | 	segmentsPath  string | ||||||
| 	segmentNumber int | 	segmentNumber int | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue