removed redundant ad.Ad method from interface, replaced with Sign

The Splice method was literally the same as codec.Encode except no error return. Both wrong and redundant. Sign method was already primed to become interface so now ad.Ad is an interface that can do all the main things required of an Ad. Codec, plus sign and validate. This means that the implementation could now largely be purely abstract except for the conversion to and from the wire format.
This commit is contained in:
l0k18
2023-07-19 13:52:15 +01:00
parent 4816d0e851
commit b86dcb68c4
10 changed files with 68 additions and 51 deletions

View File

@@ -113,7 +113,7 @@ func TestEngine_PeerStoreDiscovery(t *testing.T) {
t.FailNow()
}
_ = engines
time.Sleep(time.Second * 5)
time.Sleep(time.Second * 3)
cleanup()
pauza()
}