Browse Source
Do not monitor for backend presence from maker's UI.
Maker is a long-running process, Rocket logs from accessing `GET /alive`
endpoint are a source of spam.
new-http-api
Mariusz Klochowicz
3 years ago
No known key found for this signature in database
GPG Key ID: 470C865699C8D4D
1 changed files with
0 additions and
2 deletions
-
maker-frontend/src/MakerApp.tsx
|
|
@ -19,7 +19,6 @@ import { |
|
|
|
import React, { useEffect, useState } from "react"; |
|
|
|
import { useAsync } from "react-async"; |
|
|
|
import { useEventSource } from "react-sse-hooks"; |
|
|
|
import { useBackendMonitor } from "./components/BackendMonitor"; |
|
|
|
import { CfdTable } from "./components/cfdtables/CfdTable"; |
|
|
|
import CurrencyInputField from "./components/CurrencyInputField"; |
|
|
|
import CurrentPrice from "./components/CurrentPrice"; |
|
|
@ -44,7 +43,6 @@ export default function App() { |
|
|
|
const priceInfo = useLatestEvent<PriceInfo>(source, "quote"); |
|
|
|
|
|
|
|
const toast = useToast(); |
|
|
|
useBackendMonitor(toast, 5000); // 5s timeout
|
|
|
|
|
|
|
|
let [minQuantity, setMinQuantity] = useState<string>("10"); |
|
|
|
let [maxQuantity, setMaxQuantity] = useState<string>("100"); |
|
|
|