Codebase list golang-github-beorn7-perks / 63d46f1
sort samples for client Blake Mizerany 11 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
126126 // Merge merges samples into the underlying streams samples. This is handy when
127127 // merging multiple streams from separate threads, database shards, etc.
128128 func (s *Stream) Merge(samples Samples) {
129 sort.Sort(samples)
129130 s.stream.merge(samples)
130131 }
131132