gofmt handlers

This commit is contained in:
Brad Fitzpatrick 2012-11-07 20:54:55 +01:00
parent b887087606
commit a6d3151645
2 changed files with 4 additions and 3 deletions

View File

@ -95,7 +95,7 @@ func handleEnumerateBlobs(conn http.ResponseWriter, req *http.Request, storage b
blobch := make(chan blobref.SizedBlobRef, 100) blobch := make(chan blobref.SizedBlobRef, 100)
resultch := make(chan error, 1) resultch := make(chan error, 1)
go func() { go func() {
resultch <- storage.EnumerateBlobs(blobch, formValueAfter, limit+1, time.Duration(waitSeconds) * time.Second) resultch <- storage.EnumerateBlobs(blobch, formValueAfter, limit+1, time.Duration(waitSeconds)*time.Second)
}() }()
after := "" after := ""

View File

@ -17,12 +17,13 @@ limitations under the License.
package handlers package handlers
import ( import (
. "camlistore.org/pkg/test/asserts"
"camlistore.org/pkg/blobref"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"time" "time"
"camlistore.org/pkg/blobref"
. "camlistore.org/pkg/test/asserts"
) )
type emptyEnumerator struct { type emptyEnumerator struct {