diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-23 19:11:38 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-23 19:15:50 +0200 |
commit | 16f55e3f4d560330a638986130d27fd067300169 (patch) | |
tree | 41cfedb5c11bf9accd131d34b8a9ac25cfafaa05 /bug/operation_iterator.go | |
parent | 6d7dc465d881d0d04b01dfb6e09870346216d2d0 (diff) | |
download | git-bug-16f55e3f4d560330a638986130d27fd067300169.tar.gz |
bug: introduce WithSnapshot to maintain incrementally and effitiently a snapshot
Diffstat (limited to 'bug/operation_iterator.go')
-rw-r--r-- | bug/operation_iterator.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/operation_iterator.go b/bug/operation_iterator.go index 0df8b599..f42b1776 100644 --- a/bug/operation_iterator.go +++ b/bug/operation_iterator.go @@ -6,9 +6,9 @@ type OperationIterator struct { opIndex int } -func NewOperationIterator(bug *Bug) *OperationIterator { +func NewOperationIterator(bug Interface) *OperationIterator { return &OperationIterator{ - bug: bug, + bug: bugFromInterface(bug), packIndex: 0, opIndex: -1, } |