浏览代码

Rename Read to Await

Niko Kovacevic 6 年之前
父节点
当前提交
dc5705e75d
共有 1 个文件被更改,包括 2 次插入2 次删除
  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
 // QueryResultsChan is a channel of query results
 type QueryResultsChan chan []*QueryResult
 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
 // deferring the closure of the underlying channel
-func (qrc QueryResultsChan) Read() []*QueryResult {
+func (qrc QueryResultsChan) Await() []*QueryResult {
 	defer close(qrc)
 	defer close(qrc)
 	return <-qrc
 	return <-qrc
 }
 }