From 89c0e6819b995e868b69a1e56ea096422f1eefb4 Mon Sep 17 00:00:00 2001 From: liangchengyang Date: Tue, 17 Dec 2024 16:13:34 +0800 Subject: [PATCH] =?UTF-8?q?FIX:=E4=BF=AE=E5=A4=8Dxxhash=E5=8F=96=E5=80=BC?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/Context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Context.ts b/src/client/Context.ts index 4f72173..fd81c95 100644 --- a/src/client/Context.ts +++ b/src/client/Context.ts @@ -32,7 +32,7 @@ type ResponseFactory = (rdd: RDD) => Request | Promise>; function hashPartitionFunc(numPartitions: number) { return serialize( (data: V) => { - return xxhash.XXHash32.hash(pack.encode(data)).readIntLE(0,4) % numPartitions; + return xxhash.XXHash32.hash(pack.encode(data)).readUint32LE(0, 4) % numPartitions; }, { numPartitions,