func (h *History) AllRecords() map[string][]*Record {
	h.Lock()
	defer h.Unlock()

	res := make(map[string][]*Record, len(h.logs))
	for key, log := range h.logs {
		res[key] = log.toSlice()
	}
	return res
}
func (h *History) AllRecords() map[string][]*Record {
	h.Lock()
	defer h.Unlock()

	res := make(map[string][]*Record, len(h.logs))
	for key, log := range h.logs {
		res[key] = log.toSlice()
	}
	return res
}
func ( h * History ) AllRecords ( ) map [ string ] [ ] * Record { h . Lock ( ) defer h . Unlock ( ) res := make ( map [ string ] [ ] * Record , len ( h . logs ) ) for key , log := range h . logs { res [ key ] = log . toSlice ( ) } return res }
// AllRecords generates a map from pool key -> sorted records for the pool.
AllRecords generates a map from pool key - > sorted records for the pool .