HomeSoftware Heritage

storage.writer: Fix journal writer sanitizer function

Description

storage.writer: Fix journal writer sanitizer function

According to the value_sanitizer docstring, this takes 2 parameters, first is
the object type, the second is the actual dict value to sanitize. As a somewhat
default identity function, this discards the object type and returns directly
the dict value unchanged.

[1] https://forge.softwareheritage.org/source/swh-journal/browse/master/swh/journal/writer/kafka.py$97-100

Details

Provenance
ardumontAuthored on Nov 27 2020, 2:26 PM
ardumontPushed on Nov 27 2020, 2:36 PM
Differential Revision
D4624: storage.writer: Fix journal writer sanitizer function
Parents
rDCIDX73e181b05510: idx.storage.JournalWriter: pass value_sanitizer to get_journal_writer.
Branches
Unknown
Tags
Unknown
References
tag: v0.6.3
Build Status
Buildable 17593
Build 27195: test-and-buildJenkins console · Jenkins