(fileName: string)
| 58 | } |
| 59 | |
| 60 | export const getRepoIdFromShardFileName = (fileName: string): number | undefined => { |
| 61 | const match = fileName.match(/^(\d+)_(\d+)_/); |
| 62 | if (!match) { |
| 63 | return undefined; |
| 64 | } |
| 65 | return parseInt(match[2], 10); |
| 66 | } |
| 67 | |
| 68 | export const fetchWithRetry = async <T>( |
| 69 | fetchFn: () => Promise<T>, |
no outgoing calls
no test coverage detected