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
|
// Fs represents a remote swift server
|
||||||
type Fs struct {
|
type Fs struct {
|
||||||
name string // name of this remote
|
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
|
container string // the container we are working on
|
||||||
segmentsContainer string // container to store the segments (if any) in
|
segmentsContainer string // container to store the segments (if any) in
|
||||||
root string // the path we are working on if any
|
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{
|
f := &Fs{
|
||||||
name: name,
|
name: name,
|
||||||
c: *c,
|
c: c,
|
||||||
container: container,
|
container: container,
|
||||||
segmentsContainer: container + "_segments",
|
segmentsContainer: container + "_segments",
|
||||||
root: directory,
|
root: directory,
|
||||||
|
|
Loading…
Reference in a new issue