MSP-325 remove journal
This commit is contained in:
1 parent
04a07377c1
commit
7b5c6165f2
4 files changed
-37
No files matched your search
@@ -9,7 +9,6 @@ require (
|
||||
github.com/go-redis/redis/v8 v8.8.2
|
||||
github.com/golang/protobuf v1.5.2
|
||||
github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f
|
||||
github.com/integration-system/isp-journal v1.5.0
|
||||
github.com/integration-system/isp-lib/v2 v2.8.7
|
||||
github.com/integration-system/isp-log v1.1.8
|
||||
github.com/json-iterator/go v1.1.11
|
||||
|
||||
@@ -391,7 +391,6 @@ github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f h1:52UOJ
|
||||
github.com/integration-system/go-cmp v0.0.0-20190131081942-ac5582987a2f/go.mod h1:w+dmaWojuIwNujSYg6qt1wKHhSdorLOivCEl/XuLzbM=
|
||||
github.com/integration-system/gowsdl v1.0.0 h1:rDv5HrzNUs6aWTj9roSDS9ZdIf58FzF0YVP2nusvbto=
|
||||
github.com/integration-system/gowsdl v1.0.0/go.mod h1:ZwTCE+Av5aQLnPj2/3PIop6mzCs1FY7jXrcWDvSjrBA=
|
||||
github.com/integration-system/isp-etp-go/v2 v2.1.0/go.mod h1:Ndq5DMM3sDJjZn4cyKKvZrVED0FMeoXMRWHZTq+2Z1o=
|
||||
github.com/integration-system/isp-etp-go/v2 v2.1.1/go.mod h1:Ndq5DMM3sDJjZn4cyKKvZrVED0FMeoXMRWHZTq+2Z1o=
|
||||
github.com/integration-system/isp-etp-go/v2 v2.1.2/go.mod h1:fSkS09/engepaDDqaDAEeXUpzmtcMpSLjilZ35BfNcc=
|
||||
github.com/integration-system/isp-etp-go/v2 v2.1.3 h1:vcHP/PE7p1G3rxqoVKrKtXzoSxFA4ryxigd+zPkAb3w=
|
||||
@@ -400,15 +399,10 @@ github.com/integration-system/isp-event-lib v1.6.0/go.mod h1:lCzAci6oS+vc51W8EfH
|
||||
github.com/integration-system/isp-event-lib v1.6.1/go.mod h1:5ZIXsMG3gC7sfQ+eICjkDpy2RSvSAxV3Cq1BVN8LFIk=
|
||||
github.com/integration-system/isp-event-lib v1.6.5 h1:cHjQmp5Y48sbVgpF0sCE05INq9m1jh7vh+23Aersrns=
|
||||
github.com/integration-system/isp-event-lib v1.6.5/go.mod h1:gQg0S8TMeISIkTLM9/DwgWwnpS3BUkNFjgByRg3+Ub0=
|
||||
github.com/integration-system/isp-io v0.0.0-20190723122940-3daf588d878f h1:nJGOobuawo5d3QgoLl1i2SJVDIHkxMl0bhH1+iqZmnk=
|
||||
github.com/integration-system/isp-io v0.0.0-20190723122940-3daf588d878f/go.mod h1:1cjy4g5F8WXrOB3l/bL3mw+TCWDppOL1pz08wOAMi9Y=
|
||||
github.com/integration-system/isp-journal v1.5.0 h1:7Lpt7dHhpq1zRY4qRRYUMiEnaQZbxyPHRcy/ik/Vm8I=
|
||||
github.com/integration-system/isp-journal v1.5.0/go.mod h1:B6cLJqjNL+XHWv4IzKt5aIZ7AjbHX2tQFXgRSaWNNIo=
|
||||
github.com/integration-system/isp-lib-test v1.5.4/go.mod h1:rD+X0QMiOIeJDhqwB4avdYhnc1hoEkL4z+7C7lwTuOA=
|
||||
github.com/integration-system/isp-lib-test v1.6.0/go.mod h1:If5QK5jsXE48DZuq6WzCw8yC22k7GogLrEnMngXiE2Y=
|
||||
github.com/integration-system/isp-lib-test v1.6.4 h1:5n2Srk9pjAUqllYMxWid3yaJIiejLfZj2rN70AzZa5o=
|
||||
github.com/integration-system/isp-lib-test v1.6.4/go.mod h1:k8DiXG/Bx3k8cft0QI/+BTRsL/43effW5575udzWv1M=
|
||||
github.com/integration-system/isp-lib/v2 v2.3.1/go.mod h1:eRSmS3+S8WXTUKu7YtSimFJDrLF+/esM/989NBEsP2o=
|
||||
github.com/integration-system/isp-lib/v2 v2.4.0/go.mod h1:hxyzKBD7eIf6Hm4x6zRsLW5p8m/aFeqeezKMFYBAtho=
|
||||
github.com/integration-system/isp-lib/v2 v2.6.2/go.mod h1:ZGW7qQsCuELBHRBnSSDSEonPx+FxAfHiAfwsGQZzVO4=
|
||||
github.com/integration-system/isp-lib/v2 v2.8.4/go.mod h1:bKFyatmLqEkaQWJjww0R1Dz+cRn8T7YSaf4VrROgeTw=
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
package invoker
|
||||
|
||||
import (
|
||||
"github.com/integration-system/isp-journal/rx"
|
||||
"github.com/integration-system/isp-lib/v2/backend"
|
||||
"github.com/integration-system/isp-lib/v2/structure"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type journalService struct {
|
||||
*rx.RxJournal
|
||||
}
|
||||
|
||||
var (
|
||||
journalClient = backend.NewRxGrpcClient(
|
||||
backend.WithDialOptions(grpc.WithInsecure()),
|
||||
)
|
||||
Journal = &journalService{RxJournal: rx.NewDefaultRxJournal(journalClient)}
|
||||
)
|
||||
|
||||
func (*journalService) ReceiveServiceAddressList(list []structure.AddressConfiguration) bool {
|
||||
if ok := journalClient.ReceiveAddressList(list); !ok {
|
||||
return false
|
||||
}
|
||||
go Journal.CollectAndTransferExistedLogs()
|
||||
return true
|
||||
}
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
"isp-gate-service/accounting"
|
||||
"isp-gate-service/authenticate"
|
||||
"isp-gate-service/conf"
|
||||
"isp-gate-service/invoker"
|
||||
"isp-gate-service/log"
|
||||
"isp-gate-service/proxy"
|
||||
"isp-gate-service/redis"
|
||||
@@ -44,7 +43,6 @@ func main() {
|
||||
DeclareMe(makeDeclaration).
|
||||
SocketConfiguration(socketConfiguration).
|
||||
RequireRoutes(handleRouteUpdate).
|
||||
RequireModule("journal", invoker.Journal.ReceiveServiceAddressList, false).
|
||||
SubscribeBroadcastEvent(bootstrap.ListenRestartEvent())
|
||||
|
||||
requiredModules, err := proxy.InitProxies(cfg.Locations)
|
||||
@@ -105,7 +103,6 @@ func onShutdown(_ context.Context, _ os.Signal) {
|
||||
accounting.Close()
|
||||
proxy.Close()
|
||||
_ = redis.Client.Close()
|
||||
_ = invoker.Journal.Close()
|
||||
if logger != nil {
|
||||
_ = logger.Close()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user