undo debug code

This commit is contained in:
Todd Gruben 2014-01-23 13:19:10 -06:00
parent 0106a20696
commit 44857cde60

View file

@ -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 {