(p string)
| 211 | } |
| 212 | |
| 213 | func truncatePayload(p string) string { |
| 214 | if len(p) <= maxPayloadBytes { |
| 215 | return p |
| 216 | } |
| 217 | return p[:maxPayloadBytes] + truncationMarker |
| 218 | } |
| 219 | |
| 220 | // Snapshot returns a copy of the current ring, oldest first. |
| 221 | func Snapshot() []Event { |