Commit 77a0292 Paula Gearon
committed
1 parent ba94464 commit 77a0292 Copy full SHA for 77a0292
File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 234
234
post-index (tuples/create-tuple-index name post-name r-post)
235
235
ospt-index (tuples/create-tuple-index name ospt-name r-ospt)
236
236
tspo-index #?(:clj (flat-file/record-store name tspo-name tuples/tuple-size-bytes) :cljs nil )
237
- data-pool (pool/create-pool name r-pool)]
237
+ data-pool (pool/create-pool name r-pool nil )]
238
238
(->BlockGraph spot-index post-index ospt-index tspo-index data-pool node-allocator id-checker nil nil )))
239
239
240
240
(defn new-merged-block-graph
Original file line number Diff line number Diff line change 29
29
30
30
(def ^:const node-cache-size 1024 )
31
31
32
+ (defn to-hex
33
+ [n]
34
+ #? (:clj (Long/toHexString n)
35
+ :cljs (.toString n 16 )))
36
+
32
37
(defprotocol TreeNode
33
38
(get-parent [this] " Returns the parent node. Not the Node ID, but the node object." )
34
39
(get-child-id [this side] " Gets the Node ID of the child on the given side" )
96
101
97
102
Object
98
103
(toString [this]
99
- (let [payload (mapv #(Long/toHexString (get-long this %)) (range (/ (- (:size block) header-size) 8 )))]
104
+ (let [payload (mapv #(to-hex (get-long this %)) (range (/ (- (:size block) header-size) 8 )))]
100
105
(str " Node[" (get-id this) " ] L:" (get-child-id this left) " R:" (get-child-id this right) " payload:"
101
106
payload)))
102
107
Original file line number Diff line number Diff line change 601
601
([name order-name]
602
602
(create-tuple-index name order-name nil ))
603
603
([name order-name root-id]
604
- (common-utils/named-storage (partial open-tuples order-name) name root-id)))
604
+ (common-utils/named-storage (partial open-tuples order-name) name root-id nil )))
You can’t perform that action at this time.
0 commit comments