From 85ba776ea0db1d747e0f2d0b279bb9cdf4766d54 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Wed, 13 Sep 2023 14:19:53 -0700 Subject: [PATCH] verifying types --- datastore/threads/databuffer.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/datastore/threads/databuffer.nim b/datastore/threads/databuffer.nim index d2d493c..329c39e 100644 --- a/datastore/threads/databuffer.nim +++ b/datastore/threads/databuffer.nim @@ -18,9 +18,9 @@ type KeyBuffer* = DataBuffer ValueBuffer* = DataBuffer - StringBuffer* = DataBuffer + # StringBuffer* = DataBuffer CatchableErrorBuffer* = object - msg: StringBuffer + msg: DataBuffer proc `=destroy`*(x: var DataBufferHolder) = @@ -78,8 +78,9 @@ proc toCatchable*(err: CatchableErrorBuffer): ref CatchableError = proc toBuffer*(err: ref Exception): CatchableErrorBuffer = ## convert exception to an object with StringBuffer + echoed "DataBuffer:toBuffer:err: ", err.msg return CatchableErrorBuffer( - msg: StringBuffer.new(err.msg) + msg: DataBuffer.new(err.msg) ) import ../key