🐛 Fix nexus allocate did not alloc db in cache
This commit is contained in:
parent
66df1392c4
commit
e7d7cd1000
@ -33,7 +33,9 @@ func (v *Conn) AllocResource(t AllocatableResourceType) any {
|
|||||||
return resp.Endpoints
|
return resp.Endpoints
|
||||||
case AllocatableResourceCache:
|
case AllocatableResourceCache:
|
||||||
conn := v.GetNexusGrpcConn()
|
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 {
|
if err != nil || !resp.IsSuccess {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user