Golint: improve comments in merkledag/errservice.go
Per @kevina's comments License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
Hector Sanjuan committed
Feb 7, 2018 at 09:58 UTC
d04de00f17a3ef413aeff1d22a51006b3f410f01
1 file changed
+6
-6
merkledag/errservice.go
+6
-6
@@ -14,34 +14,34 @@ type ErrorService struct {
14
15
var _ ipld.DAGService = (*ErrorService)(nil)
16
17
-// Add returns an error.
17
+// Add returns the cs.Err.
18
func (cs *ErrorService) Add(ctx context.Context, nd ipld.Node) error {
19
return cs.Err
20
}
21
22
-// AddMany returns an error.
22
+// AddMany returns the cs.Err.
23
func (cs *ErrorService) AddMany(ctx context.Context, nds []ipld.Node) error {
24
return cs.Err
25
}
26
27
-// Get returns an error.
27
+// Get returns the cs.Err.
28
func (cs *ErrorService) Get(ctx context.Context, c *cid.Cid) (ipld.Node, error) {
29
return nil, cs.Err
30
}
31
32
-// GetMany many returns an error.
32
+// GetMany many returns the cs.Err.
33
func (cs *ErrorService) GetMany(ctx context.Context, cids []*cid.Cid) <-chan *ipld.NodeOption {
34
ch := make(chan *ipld.NodeOption)
35
close(ch)
36
return ch
37
}
38
39
-// Remove returns an error.
39
+// Remove returns the cs.Err.
40
func (cs *ErrorService) Remove(ctx context.Context, c *cid.Cid) error {
41
return cs.Err
42
}
43
44
-// RemoveMany returns an error.
44
+// RemoveMany returns the cs.Err.
45
func (cs *ErrorService) RemoveMany(ctx context.Context, cids []*cid.Cid) error {
46
return cs.Err
47
}