aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--resources/outbox.go28
1 files changed, 14 insertions, 14 deletions
diff --git a/resources/outbox.go b/resources/outbox.go
index 93bed92..e7004c4 100644
--- a/resources/outbox.go
+++ b/resources/outbox.go
@@ -84,20 +84,20 @@ func RenderOutbox(name, domain string, db *badger.DB) (map[string]interface{}, e
oc.SetJSONLDId(idProp)
var i int
- err = db.View(func(txn *badger.Txn) error {
- opts := badger.DefaultIteratorOptions
- opts.PrefetchValues = false
- it := txn.NewIterator(opts)
- defer it.Close()
- prefix := []byte("outbox:sample") // TODO
- for it.Seek(prefix); it.ValidForPrefix(prefix); it.Next() {
- i++
- }
- return nil
- })
- if err != nil {
- return nil, err
- }
+ // err = db.View(func(txn *badger.Txn) error {
+ // opts := badger.DefaultIteratorOptions
+ // opts.PrefetchValues = false
+ // it := txn.NewIterator(opts)
+ // defer it.Close()
+ // prefix := []byte("outbox:sample") // TODO
+ // for it.Seek(prefix); it.ValidForPrefix(prefix); it.Next() {
+ // i++
+ // }
+ // return nil
+ // })
+ // if err != nil {
+ // return nil, err
+ // }
itemsProp := streams.NewActivityStreamsTotalItemsProperty()
itemsProp.Set(i)