MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / SyncPut

Method SyncPut

driver/ipfs-synckv/db.go:426–432  ·  view source on GitHub ↗
(key []byte, value []byte)

Source from the content-addressed store, hash-verified

424
425func (db *DB) LoadDisk(ctx context.Context) error {
426 return db.ipfsLog.LoadDisk(ctx)
427}
428
429func (db *DB) GetMultiaddrs() []string {
430 var addrs []string
431 hostAddr, _ := ma.NewMultiaddr(fmt.Sprintf("/ipfs/%s", db.ipfsNode.PeerHost.ID().String()))
432 for _, a := range db.ipfsNode.PeerHost.Addrs() {
433 addrs = append(addrs, a.Encapsulate(hostAddr).String())
434 }
435 return addrs

Callers

nothing calls this directly

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected