1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 17:22:21 +08:00

make signing dht put records optional

This commit is contained in:
Jeromy
2015-02-23 00:25:20 -08:00
parent b2b3aa859a
commit 049b5ad945
15 changed files with 97 additions and 67 deletions

View File

@ -22,7 +22,7 @@ type client struct {
}
// FIXME(brian): is this method meant to simulate putting a value into the network?
func (c *client) PutValue(ctx context.Context, key u.Key, val []byte) error {
func (c *client) PutValue(ctx context.Context, key u.Key, val []byte, sign bool) error {
log.Debugf("PutValue: %s", key)
return c.datastore.Put(key.DsKey(), val)
}