mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #366 from mrjana/cnm
BitSequence should unmarshal data during get
This commit is contained in:
commit
4a8b4af8af
1 changed files with 6 additions and 1 deletions
|
@ -40,7 +40,12 @@ func (h *Handle) Value() []byte {
|
|||
|
||||
// SetValue unmarshals the data from the KV store
|
||||
func (h *Handle) SetValue(value []byte) error {
|
||||
return h.FromByteArray(value)
|
||||
var b []byte
|
||||
if err := json.Unmarshal(value, &b); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return h.FromByteArray(b)
|
||||
}
|
||||
|
||||
// Index returns the latest DB Index as seen by this object
|
||||
|
|
Loading…
Add table
Reference in a new issue