feat(loadtest): sync add real 500-session capacity harness

This commit is contained in:
iamxvbaba 2026-08-02 12:02:07 +08:00
parent ac0566f779
commit 141f2f20c4
39 changed files with 4157 additions and 42 deletions

View file

@ -5,6 +5,7 @@ import (
"crypto/sha256"
"github.com/iamxvbaba/td/tg"
"go.uber.org/zap"
"telesrv/internal/domain"
)
@ -46,6 +47,11 @@ func (r *Router) lookupOutgoingReplay(ctx context.Context, userID int64, peer do
IdempotencyFingerprint: fingerprint,
})
if err != nil {
r.log.Warn("private send replay lookup failed",
append(r.contextLogFields(ctx),
zap.Error(err),
zap.Int64("recipient_user_id", peer.ID),
)...)
return outgoingReplayLookup{checked: true}, messageSendErr(err)
}
return outgoingReplayLookup{private: res, found: found, checked: true}, nil