Starting on SessionCache and small changes to other things.

This commit is contained in:
херетик
2023-01-31 12:10:32 +00:00
parent a83bfb06ef
commit 97ffc1f0cd
14 changed files with 47 additions and 47 deletions

View File

@@ -12,7 +12,7 @@ import (
func (eng *Engine) response(on *response.Layer, b slice.Bytes,
cur *slice.Cursor, prev types.Onion) {
pending := eng.Pending.Find(on.ID)
pending := eng.PendingResponses.Find(on.ID)
log.T.F("searching for pending ID %x", on.ID)
if pending != nil {
for i := range pending.Billable {
@@ -36,6 +36,6 @@ func (eng *Engine) response(on *response.Layer, b slice.Bytes,
MilliSatoshi(dataSize)/1024/1024, true, typ)
}
}
eng.Pending.Delete(on.ID, on.Bytes)
eng.PendingResponses.Delete(on.ID, on.Bytes)
}
}