From 5a990719a02f4fd33817a2188be17b3b50498b49 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Thu, 29 Dec 2022 11:43:54 -0500 Subject: builds? --- resources/outbox.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'resources/outbox.go') 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) -- cgit v1.2.3