Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit 77b458e

Browse files
committed
coreapi: dag: Missing batch docs
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
1 parent f4b7467 commit 77b458e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dag.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type DagOps interface {
2222
type DagBatch interface {
2323
DagOps
2424

25+
// Commit commits nodes to the datastore and announces them to the network
2526
Commit(ctx context.Context) error
2627
}
2728

@@ -35,5 +36,6 @@ type DagAPI interface {
3536
// Tree returns list of paths within a node specified by the path.
3637
Tree(ctx context.Context, path Path, opts ...options.DagTreeOption) ([]Path, error)
3738

39+
// Batch creates new DagBatch
3840
Batch(ctx context.Context) DagBatch
3941
}

0 commit comments

Comments
 (0)