From e7d7cd1000db5cfe3bf80d4ab0b221d24106ae2e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 29 Mar 2025 13:25:46 +0800 Subject: [PATCH] :bug: Fix nexus allocate did not alloc db in cache --- pkg/nex/allocator.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/nex/allocator.go b/pkg/nex/allocator.go index 7c6b2dc..9eb61a2 100644 --- a/pkg/nex/allocator.go +++ b/pkg/nex/allocator.go @@ -33,7 +33,9 @@ func (v *Conn) AllocResource(t AllocatableResourceType) any { return resp.Endpoints case AllocatableResourceCache: conn := v.GetNexusGrpcConn() - resp, err := proto.NewAllocatorServiceClient(conn).AllocCache(context.Background(), &proto.AllocCacheRequest{}) + resp, err := proto.NewAllocatorServiceClient(conn).AllocCache(context.Background(), &proto.AllocCacheRequest{ + Db: 0, + }) if err != nil || !resp.IsSuccess { return nil }