mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-01 11:26:36 +08:00
删除不必要的文件
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"crypto/tls"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/accesslogs"
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/configs"
|
||||
teaconst "github.com/TeaOSLab/EdgeAPI/internal/const"
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/db/models"
|
||||
@@ -159,9 +158,7 @@ func (this *APINode) Start() {
|
||||
})
|
||||
|
||||
// 访问日志存储管理器
|
||||
goman.New(func() {
|
||||
accesslogs.SharedStorageManager.Start()
|
||||
})
|
||||
this.startAccessLogStorages()
|
||||
|
||||
// 监听RPC服务
|
||||
remotelogs.Println("API_NODE", "starting RPC server ...")
|
||||
|
||||
8
internal/nodes/api_node_ext.go
Normal file
8
internal/nodes/api_node_ext.go
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
//go:build !plus
|
||||
|
||||
package nodes
|
||||
|
||||
func (this *APINode) startAccessLogStorages() {
|
||||
|
||||
}
|
||||
@@ -102,11 +102,6 @@ func (this *APINode) registerServices(server *grpc.Server) {
|
||||
pb.RegisterHTTPPageServiceServer(server, instance)
|
||||
this.rest(instance)
|
||||
}
|
||||
{
|
||||
var instance = this.serviceInstance(&services.HTTPAccessLogPolicyService{}).(*services.HTTPAccessLogPolicyService)
|
||||
pb.RegisterHTTPAccessLogPolicyServiceServer(server, instance)
|
||||
this.rest(instance)
|
||||
}
|
||||
{
|
||||
var instance = this.serviceInstance(&services.HTTPCachePolicyService{}).(*services.HTTPCachePolicyService)
|
||||
pb.RegisterHTTPCachePolicyServiceServer(server, instance)
|
||||
|
||||
Reference in New Issue
Block a user