Principals unmarshalled during caching don't need to instantiate a real principal - we're just using name and seq from the document
(docJSON []byte)
| 574 | |
| 575 | // Principals unmarshalled during caching don't need to instantiate a real principal - we're just using name and seq from the document |
| 576 | func (c *changeCache) unmarshalCachePrincipal(docJSON []byte) (cachePrincipal, error) { |
| 577 | var principal cachePrincipal |
| 578 | err := base.JSONUnmarshal(docJSON, &principal) |
| 579 | return principal, err |
| 580 | } |
| 581 | |
| 582 | // Process unused sequence notification. Extracts sequence from docID and sends to cache for buffering |
| 583 | func (c *changeCache) processUnusedSequence(ctx context.Context, docID string, timeReceived channels.FeedTimestamp) { |
no test coverage detected