Don't de-reference swift connection
The connection object contains a mutex, so it is good practice not to dereference it to a value. Reported by Go tip "go vet".
This commit is contained in:
parent
40dc575aa4
commit
02c11dd4a7
1 changed files with 6 additions and 6 deletions
|
@ -80,7 +80,7 @@ func init() {
|
|||
// Fs represents a remote swift server
|
||||
type Fs struct {
|
||||
name string // name of this remote
|
||||
c swift.Connection // the connection to the swift server
|
||||
c *swift.Connection // the connection to the swift server
|
||||
container string // the container we are working on
|
||||
segmentsContainer string // container to store the segments (if any) in
|
||||
root string // the path we are working on if any
|
||||
|
@ -175,7 +175,7 @@ func NewFsWithConnection(name, root string, c *swift.Connection) (fs.Fs, error)
|
|||
}
|
||||
f := &Fs{
|
||||
name: name,
|
||||
c: *c,
|
||||
c: c,
|
||||
container: container,
|
||||
segmentsContainer: container + "_segments",
|
||||
root: directory,
|
||||
|
|
Loading…
Reference in a new issue