perf: expand gateway capacity and prevent receipt replay

This commit is contained in:
hectorzhao
2026-08-25 16:08:30 +08:00
parent 761c123b65
commit 9292352be1
48 changed files with 2001 additions and 144 deletions
+5
View File
@@ -1,6 +1,8 @@
package inbound
import (
"cmpp-platform/gateway/internal/protocollog"
"context"
cmpp "github.com/bigwhite/gocmpp"
"io"
"log"
@@ -22,6 +24,9 @@ type Server struct {
RecoveryStore RecoveryStore
GatewayInstanceID string
MaxSubmitConcurrency int
ProtocolLogPublisher interface {
Publish(context.Context, protocollog.Event) error
}
}
func (s Server) ListenAndServe() error {