ЛК ЕСИА Финанс: портфель ДЕПО из DEPO — сверка каждые 10 с в проходе опроса, отправка только при изменении; настройки и «Синхронизировать сейчас»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
@@ -294,6 +294,10 @@ func (s *Server) pollLKClaims(ctx context.Context) {
|
||||
log.Printf("lk-gateway: поллер ЛК: связь с ЛК восстановлена")
|
||||
lastErr = ""
|
||||
}
|
||||
// тот же проход: портфели ДЕПО из DEPO в ЛК (только изменившиеся, lkportfolio.go)
|
||||
pctx, pcancel := context.WithTimeout(ctx, time.Minute)
|
||||
lkPortfolioSyncTick(pctx, s.rc, false)
|
||||
pcancel()
|
||||
if res.Fetched > 0 || len(res.Errors) > 0 {
|
||||
log.Printf("lk-gateway: поллер ЛК: получено %d, отправлено %d, отклонено %d, ошибок %d (имитация НРД: %v)",
|
||||
res.Fetched, res.Sent, res.Rejected, len(res.Errors), res.Emulated)
|
||||
|
||||
Reference in New Issue
Block a user