MCPcopy Create free account
hub / github.com/ethstorage/es-node / WriteMeta

Method WriteMeta

ethstorage/data_shard.go:410–417  ·  view source on GitHub ↗
(kvIdx uint64, b []byte)

Source from the content-addressed store, hash-verified

408}
409
410func (ds *DataShard) WriteMeta(kvIdx uint64, b []byte) error {
411 for _, df := range ds.dataFiles {
412 if df.ContainsKv(kvIdx) {
413 return df.WriteMeta(kvIdx, b)
414 }
415 }
416 return fmt.Errorf("kv not found: the shard is not completed?")
417}
418
419func (ds *DataShard) ReadMeta(kvIdx uint64) ([]byte, error) {
420 for _, df := range ds.dataFiles {

Callers 1

WriteWithMethod · 0.95

Calls 1

ContainsKvMethod · 0.80

Tested by

no test coverage detected