(partially tested) simplify client approval m/w

* sanitize code
This commit is contained in:
Lawrence, Rendall
2023-03-23 00:34:10 +03:00
parent 967611620e
commit 61f859e3f6
18 changed files with 99 additions and 128 deletions

View File

@@ -65,7 +65,7 @@ func build(config conf.MapConfig, st storage.PeerStorage) (h middleware.Hook, er
}
// ErrTorrentUnapproved is the error returned when a torrent hash is invalid.
var ErrTorrentUnapproved = bittorrent.ClientError("unapproved torrent")
var ErrTorrentUnapproved = bittorrent.ClientError("torrent not allowed by mochi")
type hook struct {
hashContainer container.Container