Closed reidsunderland closed 1 month ago
adding identity cod,sha512
to the config file of the subscriber works around the issue.
I think all you need is:
def update(self, chunk):
pass
in the sarracenia/identity/random.py to fix the bug. The most work is testing it.
@mshak2 can you just prepare the patch to random, and to a PR.... I'm pretty sure that will fix it, and even if it isn't tested, it will do no harm.
When consuming a v2 message with checksum mode 0 (random), and presumably sr3 messages with checksum mode
random
, sr3 fails to download.Example message posted by v2:
Causes this error:
The Random identity class doesn't implement
update
. https://github.com/MetPX/sarracenia/blob/development/sarracenia/identity/random.pyThe documentation says update is a required method: https://github.com/MetPX/sarracenia/blob/6ef61f6ba0358ba5ef3c994b4da1c8219efe95fc/sarracenia/identity/__init__.py#L35-L51
The tests should also get updated to match: https://github.com/MetPX/sarracenia/tree/development/tests/sarracenia/identity
Maybe @mshak2 can look at this one? I can help.