update backend stuck/stall
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import httpClient from '../config/httpClient';
|
||||
import pool from '../config/database';
|
||||
import environment from '../config/environment';
|
||||
|
||||
@@ -87,7 +88,7 @@ class ServiceMonitorService {
|
||||
async pingService(url: string, headers?: Record<string, string>): Promise<PingResult> {
|
||||
const start = Date.now();
|
||||
try {
|
||||
await axios.get(url, { timeout: 5000, headers });
|
||||
await httpClient.get(url, { timeout: 5000, headers });
|
||||
return {
|
||||
name: '',
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user