File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ public class Bindings {
268
268
let key = instance. globalInstanceNumber
269
269
let pointer = UnsafeMutableRawPointer ( bitPattern: key) !
270
270
// don't automatically cache the trait instance
271
- // Self.nativelyExposedInstances[instance.globalInstanceNumber] = instance
271
+ Self . nativelyExposedInstances [ instance. globalInstanceNumber] = instance
272
272
return pointer
273
273
}
274
274
@@ -289,20 +289,22 @@ public class Bindings {
289
289
if referenceCount == 0 {
290
290
print ( " Uncaching global instance \( key) " )
291
291
// TODO: fix counting
292
- Self . nativelyExposedInstances. removeValue ( forKey: key)
293
- instance. pointerDebugDescription = nil
292
+ // Self.nativelyExposedInstances.removeValue(forKey: key)
293
+ // instance.pointerDebugDescription = nil
294
294
} else if referenceCount < 0 {
295
295
print ( " Bad uncache: negative reference count ( \( referenceCount) ) for instance \( key) ! " , severity: . ERROR)
296
296
}
297
297
return true
298
298
}
299
299
300
+ /*
300
301
public class func clearInstancePointers() {
301
302
for (_, currentInstance) in Self.nativelyExposedInstances {
302
303
currentInstance.pointerDebugDescription = nil
303
304
}
304
305
Self.nativelyExposedInstances.removeAll()
305
306
}
307
+ */
306
308
307
309
/* SWIFT_TO_RUST_START */
308
310
public class func new_LDKTransactionWrapper( array: [ UInt8 ] ) -> LDKTransactionWrapper {
You can’t perform that action at this time.
0 commit comments