mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 11:32:20 +00:00
aca755ab43
* Added a method to `cmd/rpcdaemon/cli/config.go` to check header of incoming http request for a ws upgrade request * Added the testing of the 'GET /' request for ws to the devnet tool * Fixed lint errors
17 lines
226 B
Go
17 lines
226 B
Go
package requests
|
|
|
|
import "fmt"
|
|
|
|
func MockGetRequest(reqId int) {
|
|
reqGen := initialiseRequestGenerator(reqId)
|
|
|
|
res := reqGen.Get()
|
|
|
|
if res.Err != nil {
|
|
fmt.Printf("error: %v\n", res.Err)
|
|
return
|
|
}
|
|
|
|
fmt.Printf("OK\n")
|
|
}
|