Skip to content

Commit

Permalink
Changing merchant
Browse files Browse the repository at this point in the history
Reducing threads
  • Loading branch information
LuD1161 committed May 19, 2022
1 parent 9c4989c commit b6a5a39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cmd/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ const banner = `
# Website : https://aseemshrey.in
# YouTube : https://www.youtube.com/c/HackingSimplifiedAS
`

const merchant = "milaap"
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ func init() {
// will be global for your application.
fmt.Println(banner)
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.PersistentFlags().IntVarP(&threads, "threads", "t", 100, "No of threads")
rootCmd.PersistentFlags().IntVarP(&threads, "threads", "t", 10, "No of threads")
rootCmd.PersistentFlags().IntVarP(&timeout, "timeout", "", 15, "Timeout for requests")
}
4 changes: 2 additions & 2 deletions cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ func MakeRequest(vpasChan <-chan string, resultsChan chan<- VPAResponse) {
}
log.Debug().Msgf("Trying %s", vpa)
payload := strings.NewReader(fmt.Sprintf(`{
"merchant_id":"juspay",
"merchant_id":"%s",
"vpa": "%s"
}`, vpa))
}`, merchant, vpa))
req, err := http.NewRequest("POST", url, payload)
req.Header.Add("Connection", "close")
req.Header.Add("Content-Type", "application/json")
Expand Down

0 comments on commit b6a5a39

Please sign in to comment.