File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import (
28
28
var (
29
29
dialTimeout = flag .Duration ("dial" , 5 * time .Second , "Timeout on dialing the server (0 for no timeout)" )
30
30
callTimeout = flag .Duration ("timeout" , 0 , "Timeout on each call (0 for no timeout)" )
31
- doHTTP = flag .Bool ("http" , false , "Connect via HTTP (address is the endpoint URL)" )
32
31
doNotify = flag .Bool ("notify" , false , "Send a notification" )
33
32
withContext = flag .Bool ("c" , false , "Send context with request" )
34
33
chanFraming = flag .String ("f" , envOrDefault ("JCALL_FRAMING" , "raw" ), "Channel framing" )
@@ -111,7 +110,7 @@ func main() {
111
110
// connection; the HTTP client will handle that.
112
111
start := time .Now ()
113
112
var cc channel.Channel
114
- if * doHTTP || isHTTP (flag .Arg (0 )) {
113
+ if isHTTP (flag .Arg (0 )) {
115
114
cc = jhttp .NewChannel (flag .Arg (0 ), nil )
116
115
} else if nc := newFraming (* chanFraming ); nc == nil {
117
116
log .Fatalf ("Unknown channel framing %q" , * chanFraming )
You can’t perform that action at this time.
0 commit comments