From d2fe067647c41c138166e37713386ec44eac088e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 26 Oct 2024 00:18:36 +0200 Subject: [PATCH] import directly from borghash --- src/borg/hashindex.pyx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/borg/hashindex.pyx b/src/borg/hashindex.pyx index 6710d6bec..71a44d5cb 100644 --- a/src/borg/hashindex.pyx +++ b/src/borg/hashindex.pyx @@ -2,7 +2,7 @@ from collections import namedtuple import os import struct -from borghash cimport _borghash +from borghash cimport HashTableNT API_VERSION = '1.2_01' @@ -20,11 +20,11 @@ class ChunkIndex: def __init__(self, capacity=1000, path=None, permit_compact=False, usable=None): if path: - self.ht = _borghash.HashTableNT.read(path) + self.ht = HashTableNT.read(path) else: if usable is not None: capacity = usable * 2 # load factor 0.5 - self.ht = _borghash.HashTableNT(key_size=32, value_format="