This commit is contained in:
Nick Craig-Wood 2012-12-24 00:03:18 +00:00
parent c3671907cb
commit 12658efef2

View File

@ -24,9 +24,9 @@ import (
var ( var (
// Flags // Flags
cpuprofile = flag.String("cpuprofile", "", "Write cpu profile to file") cpuprofile = flag.String("cpuprofile", "", "Write cpu profile to file")
snet = flag.Bool("snet", false, "Use internal service network") // FIXME not implemented snet = flag.Bool("snet", false, "Use internal service network") // FIXME not implemented
verbose = flag.Bool("verbose", false, "Print lots more stuff") verbose = flag.Bool("verbose", false, "Print lots more stuff")
quiet = flag.Bool("quiet", false, "Print as little stuff as possible") quiet = flag.Bool("quiet", false, "Print as little stuff as possible")
// FIXME make these part of swift so we get a standard set of flags? // FIXME make these part of swift so we get a standard set of flags?
authUrl = flag.String("auth", os.Getenv("ST_AUTH"), "Auth URL for server. Defaults to environment var ST_AUTH.") authUrl = flag.String("auth", os.Getenv("ST_AUTH"), "Auth URL for server. Defaults to environment var ST_AUTH.")
userName = flag.String("user", os.Getenv("ST_USER"), "User name. Defaults to environment var ST_USER.") userName = flag.String("user", os.Getenv("ST_USER"), "User name. Defaults to environment var ST_USER.")
@ -348,7 +348,6 @@ func (fs *FsObject) get(c *swift.Connection, container string) {
} }
} }
// Read FsObjects on in and download them // Read FsObjects on in and download them
func downloader(c *swift.Connection, container string, in FsObjectsChan, wg *sync.WaitGroup) { func downloader(c *swift.Connection, container string, in FsObjectsChan, wg *sync.WaitGroup) {
defer wg.Done() defer wg.Done()