erigon-pulse/cmd/devnettest/requests/mock_requests.go

14 lines
258 B
Go

package requests
import "fmt"
func MockGetRequest(reqId int) error {
reqGen := initialiseRequestGenerator(reqId)
res := reqGen.Get()
if res.Err != nil {
return fmt.Errorf("failed to make get request: %v", res.Err)
}
fmt.Printf("OK\n")
return nil
}