Ensure callers get errors when they happen
Previously we silently dropped portions or all of a block when a duplicate quad is found. We still fail now, but we tell someone. Fixes #201.
This commit is contained in:
parent
9088fe376b
commit
9e378302f5
2 changed files with 10 additions and 5 deletions
|
|
@ -55,8 +55,7 @@ func (s *Single) AddQuadSet(set []quad.Quad) error {
|
|||
Timestamp: time.Now(),
|
||||
}
|
||||
}
|
||||
s.qs.ApplyDeltas(deltas)
|
||||
return nil
|
||||
return s.qs.ApplyDeltas(deltas)
|
||||
}
|
||||
|
||||
func (s *Single) RemoveQuad(q quad.Quad) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue