From 44857cde60110083c00d90589135e18887557d5f Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Thu, 23 Jan 2014 13:19:10 -0600 Subject: [PATCH] undo debug code --- commands/pilosa-loader/loader.go | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/commands/pilosa-loader/loader.go b/commands/pilosa-loader/loader.go index 42c087b4a..c9c3c96cb 100644 --- a/commands/pilosa-loader/loader.go +++ b/commands/pilosa-loader/loader.go @@ -4,14 +4,15 @@ import ( "bufio" "flag" "fmt" + "io/ioutil" "log" + "net/http" "net/url" "os" "pilosa/db" "pilosa/index" "strconv" "strings" - "github.com/davecgh/go-spew/spew" ) func post(database, base_url, id, compressed_string, frame_type string, slice int) { @@ -21,17 +22,14 @@ func post(database, base_url, id, compressed_string, frame_type string, slice in values.Set("frame", frame_type) values.Set("slice", fmt.Sprintf("%d", slice)) values.Set("bitmap", compressed_string) - spew.Dump(values) - /* - r, err := http.PostForm(base_url, values) - if err != nil { - log.Printf("error posting stat to stathat: %s", err) - return - } - //body, _ := ioutil.ReadAll(r.Body) - ioutil.ReadAll(r.Body) - r.Body.Close() - */ + r, err := http.PostForm(base_url, values) + if err != nil { + log.Printf("error posting stat to stathat: %s", err) + return + } + //body, _ := ioutil.ReadAll(r.Body) + ioutil.ReadAll(r.Body) + r.Body.Close() } func Load(database, url, fullpath string, frame_type string) error {