pickledb icon indicating copy to clipboard operation
pickledb copied to clipboard

why json.dump data twice?

Open ycombo opened this issue 4 years ago • 1 comments

In the pickledb.py dump function(code line 90), the json.dump() func dumps data the first time, then the dthread dumps data second time.

It seems a little confusing. Is that a bug or does anybody know why?

ycombo avatar Sep 07 '21 08:09 ycombo

I also can't see why this is being written twice. I have removed the initial json.dump and tested but could not find any sort of errors when running. I'm not sure if this was intended to be removed once the capability of writing in a thread was introduced.

ooojpeg avatar Oct 03 '21 20:10 ooojpeg