diff --git a/attr.go b/attr.go index 30365769c..0a2a0b5d2 100644 --- a/attr.go +++ b/attr.go @@ -182,13 +182,10 @@ func encodeAttr(key string, value interface{}) *internal.Attr { case string: pb.StringValue = proto.String(value) case float64: - fmt.Println("A") pb.UintValue = proto.Uint64(uint64(value)) case uint64: - fmt.Println("b") pb.UintValue = proto.Uint64(value) case int64: - fmt.Println("c") pb.UintValue = proto.Uint64(uint64(value)) case bool: pb.BoolValue = proto.Bool(value) diff --git a/fragment.go b/fragment.go index 6ce30dbaa..176585ddf 100644 --- a/fragment.go +++ b/fragment.go @@ -7,7 +7,6 @@ import ( "io/ioutil" "log" "os" - "reflect" "sort" "strings" "sync" @@ -385,8 +384,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac filters = make(map[interface{}]struct{}) for _, v := range fieldValues { filters[v] = struct{}{} - fmt.Println("B:", reflect.TypeOf(v)) - } } @@ -403,7 +400,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac // Apply filter, if set. if filters != nil { attr, err := f.BitmapAttrStore.Attrs(bitmapID) - fmt.Println("C:", reflect.TypeOf(attr), attr) if err != nil { return nil, err } else if attr == nil { @@ -411,7 +407,6 @@ func (f *Fragment) TopN(n int, src *Bitmap, field string, fieldValues []interfac } else if attrValue := attr[field]; attrValue == nil { continue } else if _, ok := filters[attrValue]; !ok { - fmt.Println("A:", reflect.TypeOf(attrValue)) continue } }