Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
miku committed Oct 19, 2021
1 parent e9b7794 commit 9978580
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@ type Dumper struct {
}

func (d *Dumper) Run() error {
v := url.Values{}
var (
total int
v = url.Values{}
)
v.Set("q", d.Query)
v.Set("sort", d.Sort)
v.Set("rows", fmt.Sprintf("%d", d.NumRows))
v.Set("fl", d.Fields)
v.Set("wt", "json")
v.Set("cursorMark", "*")
var total int
for {
link := fmt.Sprintf("%s/select?%s", d.Server, v.Encode())
if d.Verbose {
Expand Down

0 comments on commit 9978580

Please sign in to comment.