diff options
| author | jet2tlf <jet2tlf@gmail.com> | 2024-06-03 17:22:45 +0000 |
|---|---|---|
| committer | jet2tlf <jet2tlf@gmail.com> | 2024-06-03 17:22:45 +0000 |
| commit | 77697f325020b662bebb218ac23010d268485bd1 (patch) | |
| tree | ce88971cd8e181cbae043feb432302770b916b58 /cmd/mybittorrent/main.go | |
| parent | f57081ab0fbda8b7e48384f1830b09f6cb8d3c44 (diff) | |
| download | bittorrent-go-77697f325020b662bebb218ac23010d268485bd1.tar.gz bittorrent-go-77697f325020b662bebb218ac23010d268485bd1.zip | |
codecrafters submit [skip ci]
Diffstat (limited to 'cmd/mybittorrent/main.go')
| -rw-r--r-- | cmd/mybittorrent/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mybittorrent/main.go b/cmd/mybittorrent/main.go index 87095ae..e3e902a 100644 --- a/cmd/mybittorrent/main.go +++ b/cmd/mybittorrent/main.go @@ -42,7 +42,7 @@ func main() { if command == "decode" { bencodedValue := os.Args[2] - decoded, err := decodeBencode(bencodedValue) + decoded, err := NewDecoder(bencodedValue).Decode() if err != nil { fmt.Println(err) return |