mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
undo debug code
This commit is contained in:
parent
0106a20696
commit
44857cde60
1 changed files with 10 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue