Address string `arg:"positional"`
SecretKey string `arg:"positional"`
InitialPayload []byte
- } `arg:"subcommand""`
+ } `arg:"subcommand"`
Listen *struct {
Network string `arg:"positional"`
Address string `arg:"positional"`
SecretKeys []string `arg:"positional"`
- } `arg:"subcommand""`
+ } `arg:"subcommand"`
}{
CryptoMethod: mse.AllSupportedCrypto,
}
}
}
-func (me diskFullStorage) Close() error {
+func (me *diskFullStorage) Close() error {
return nil
}
-func (d diskFullStorage) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (storage.TorrentImpl, error) {
- return &d, nil
+func (d *diskFullStorage) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (storage.TorrentImpl, error) {
+ return d, nil
}
type pieceImpl struct {
}(url)
}
wg.Wait()
+ cancel()
}
// Check that URLPath option is done correctly.