diff --git a/object/site_timer.go b/object/site_timer.go
index 4fb962f..e5899dd 100644
--- a/object/site_timer.go
+++ b/object/site_timer.go
@@ -16,10 +16,14 @@ package object
import (
"fmt"
+ "sync"
"time"
)
-var siteUpdateMap = map[string]string{}
+var (
+ siteUpdateMap = map[string]string{}
+ lock = &sync.Mutex{}
+)
func monitorSites() error {
sites, err := GetGlobalSites()
@@ -33,7 +37,9 @@ func monitorSites() error {
// continue
//}
+ lock.Lock()
err = site.checkNodes()
+ lock.Unlock()
if err != nil {
return err
}
diff --git a/web/src/SiteListPage.js b/web/src/SiteListPage.js
index e6d2f81..b413e59 100644
--- a/web/src/SiteListPage.js
+++ b/web/src/SiteListPage.js
@@ -107,13 +107,13 @@ class SiteListPage extends React.Component {
}
renderTable(sites) {
- const renderExternalLink = () => {
- return (
-
- );
- };
+ // const renderExternalLink = () => {
+ // return (
+ //
+ // );
+ // };
const columns = [
{
@@ -309,25 +309,25 @@ class SiteListPage extends React.Component {
);
},
},
- {
- title: i18next.t("site:Casdoor app"),
- dataIndex: "casdoorApplication",
- key: "casdoorApplication",
- width: "140px",
- sorter: (a, b) => a.casdoorApplication.localeCompare(b.casdoorApplication),
- render: (text, record, index) => {
- if (text === "") {
- return null;
- }
-
- return (
-
- {text}
- {renderExternalLink()}
-
- );
- },
- },
+ // {
+ // title: i18next.t("site:Casdoor app"),
+ // dataIndex: "casdoorApplication",
+ // key: "casdoorApplication",
+ // width: "140px",
+ // sorter: (a, b) => a.casdoorApplication.localeCompare(b.casdoorApplication),
+ // render: (text, record, index) => {
+ // if (text === "") {
+ // return null;
+ // }
+ //
+ // return (
+ //
+ // {text}
+ // {renderExternalLink()}
+ //
+ // );
+ // },
+ // },
{
title: i18next.t("general:Action"),
dataIndex: "action",