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

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

Build:
Build:
LAST BUILD BRANCH: update/go-multicodec
DEFAULT BRANCH: master
Ran 11 Nov 2017 02:43AM UTC
Jobs 1
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

pending completion
119

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

Jobs
ID Job ID Ran Files Coverage
1 119.1 11 Nov 2017 02:43AM UTC 0
84.81
Travis Job 119.1
Source Files on build 119
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #119
  • 4d47e913 on github
  • Next Build on feat/export-snapshot (#121)
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