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

Function runSampleRead

cmd/es-utils/main.go:353–363  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

351}
352
353func runSampleRead(cmd *cobra.Command, args []string) {
354 setupLogger()
355
356 ds := initDataShard()
357
358 b, err := ds.ReadSample(*sampleIdx)
359 if err != nil {
360 log.Crit("Read failed", "error", err)
361 }
362 os.Stdout.Write(b.Bytes())
363}
364
365func runWriteBlob(cmd *cobra.Command, args []string) {
366 setupLogger()

Callers

nothing calls this directly

Calls 4

setupLoggerFunction · 0.85
initDataShardFunction · 0.85
ReadSampleMethod · 0.65
WriteMethod · 0.45

Tested by

no test coverage detected