distsysbook icon indicating copy to clipboard operation
distsysbook copied to clipboard

Fix bug in VectorClock example

Open stuartsan opened this issue 6 years ago • 0 comments

Great book, thanks for writing it!

I think there's a bug in the merge method in the VectorClock example; as-is the result of the concatenation will be something like:

['foo', 'bar', { 'foo': 1, 'bar': 2 }]

And I believe it should be more like:

['foo', 'bar', 'foo', 'bar']

stuartsan avatar May 26 '19 23:05 stuartsan