commit 22d635d85046ac8f2ed50f2c562ef456e0b9b25f parent fc9b9f2940feb199c3ec14035f8bbe1c097a34d2 Author: William Casarin <jb55@jb55.com> Date: Sun, 10 Sep 2023 16:12:03 -0700 ndb: don't verify flatbuffers in release builds Diffstat:
M | nostrdb/Ndb.swift | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/nostrdb/Ndb.swift b/nostrdb/Ndb.swift @@ -191,11 +191,11 @@ class Ndb { } #if DEBUG -func getDebugCheckedRoot<T: FlatBufferObject & Verifiable>(byteBuffer: inout ByteBuffer) throws -> T { - return try getRoot(byteBuffer: &byteBuffer) +func getDebugCheckedRoot<T: FlatBufferObject>(byteBuffer: inout ByteBuffer) throws -> T { + return getRoot(byteBuffer: &byteBuffer) } #else func getDebugCheckedRoot<T: FlatBufferObject>(byteBuffer: inout ByteBuffer) throws -> T { - return try getRoot(byteBuffer: &byteBuffer) + return getRoot(byteBuffer: &byteBuffer) } #endif