Explorar el Código

Rename Read to Await

Niko Kovacevic hace 6 años
padre
commit
dc5705e75d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      pkg/prom/result.go

+ 2 - 2
pkg/prom/result.go

@@ -13,9 +13,9 @@ import (
 // QueryResultsChan is a channel of query results
 type QueryResultsChan chan []*QueryResult
 
-// Read returns query results, blocking until they are made available, and
+// Await returns query results, blocking until they are made available, and
 // deferring the closure of the underlying channel
-func (qrc QueryResultsChan) Read() []*QueryResult {
+func (qrc QueryResultsChan) Await() []*QueryResult {
 	defer close(qrc)
 	return <-qrc
 }