Remove md5sum fields from the encoder/decoder helper structs.
There is no need for them.
This commit is contained in:
parent
cfafbffbc1
commit
ae6df86341
|
@ -137,7 +137,6 @@ func LoadFromFile(filename string) (*MetaInfo, error) {
|
|||
type torrent_info_file struct {
|
||||
Path []string `bencode:"path"`
|
||||
Length int64 `bencode:"length"`
|
||||
MD5Sum []byte `bencode:"md5sum,omitempty"`
|
||||
}
|
||||
|
||||
type torrent_info struct {
|
||||
|
@ -145,7 +144,6 @@ type torrent_info struct {
|
|||
Pieces []byte `bencode:"pieces"`
|
||||
Name string `bencode:"name"`
|
||||
Length int64 `bencode:"length,omitempty"`
|
||||
MD5Sum []byte `bencode:"md5sum,omitempty"`
|
||||
Private bool `bencode:"private,omitempty"`
|
||||
Files []torrent_info_file `bencode:"files,omitempty"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue