-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dcellar-web-ui): fix query quota slow
- Loading branch information
Showing
6 changed files
with
50 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
import { getClient } from "@/base/client"; | ||
import { getClient } from '@/base/client'; | ||
import { | ||
QueryGlobalVirtualGroupFamilyRequest, | ||
QueryGlobalVirtualGroupFamilyResponse | ||
} from "@bnb-chain/greenfield-cosmos-types/greenfield/virtualgroup/query"; | ||
import { resolve } from "./common"; | ||
import { ErrorResponse, commonFault } from "./error"; | ||
QueryGlobalVirtualGroupFamilyResponse, | ||
} from '@bnb-chain/greenfield-cosmos-types/greenfield/virtualgroup/query'; | ||
import { resolve } from './common'; | ||
import { ErrorResponse, commonFault } from './error'; | ||
|
||
export const getVirtualGroupFamily = async (params: QueryGlobalVirtualGroupFamilyRequest): Promise<ErrorResponse | [QueryGlobalVirtualGroupFamilyResponse, null]> => { | ||
export const getVirtualGroupFamily = async ( | ||
params: QueryGlobalVirtualGroupFamilyRequest, | ||
): Promise<ErrorResponse | [QueryGlobalVirtualGroupFamilyResponse, null]> => { | ||
const client = await getClient(); | ||
return await client.virtualGroup.getGlobalVirtualGroupFamily(params).then(resolve, commonFault) | ||
} | ||
|
||
export const getSpUrlByBucketName = async (bucketName: string): Promise<ErrorResponse | [string, null]> => { | ||
const client = await getClient(); | ||
|
||
return await client.sp.getSPUrlByBucket(bucketName).then(resolve, commonFault) | ||
} | ||
return await client.virtualGroup.getGlobalVirtualGroupFamily(params).then(resolve, commonFault); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters