MCPcopy Index your code
hub / github.com/scality/cloudserver / callFn

Function callFn

tests/functional/raw-node/utils/gcpUtils.js:75–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74async function gcpUploadWithRetry(gcpClient, params, retryOptions) {
75 const callFn = () => new Promise((resolve, reject) => {
76 gcpClient.upload(params, (err, data) => {
77 if (err) {
78 return reject(err);
79 }
80 return resolve(data);
81 });
82 });
83
84 return gcpRetryCall(callFn, {
85 maxAttempts: 6,

Callers 1

gcpRetryCallFunction · 0.85

Calls 1

uploadMethod · 0.80

Tested by

no test coverage detected