• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

libp2p / go-libp2p-raft / 119 / 1
86%
master: 85%

Build:
Build:
LAST BUILD BRANCH: update/go-multicodec
DEFAULT BRANCH: master
Ran 11 Nov 2017 02:43AM UTC
Files 5
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Nov 2017 02:30AM UTC coverage: 84.81%. First build
119.1

push

travis-ci

hsanjuan
Do not export Encode/DecodeState but Encode/DecodeSnapshot

encodeState and decodeState were meant as internal operations for
how we serialize states for transmitting them with raft.
It turns out, they were not used in the end and instead encodeOp and
decodeOp (which are very similar) took their place.

As convinience, we used encodeState and decodeState as usable
serializable format for snapshots. How snapshots are formatted
is something useful to export, so users can work directly with them.
But that format should not be tied to how states are [de]serialized
for raft (an internal choice), which is what encodeState and
decodeState were for in the first place (and might be used
for in the future).

For example, you could use msgpack for sending states and operations,
but simply use json for snapshot formatting. This change allows more
freedom if we are ever to change how things are serialized internally
vs how snapshots are stored.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>

268 of 316 relevant lines covered (84.81%)

2913.11 hits per line

Source Files on job 119.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 119
  • Travis Job 119.1
  • 4d47e913 on github
  • Next Job for on feat/export-snapshot (#121.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc