Skip to content

Commit c986bef

Browse files
committed
jcall: Remove the unnecessary -http flag.
The URL already has enough to detect the format, and the scheme prefix is required by the HTTP client anyway.
1 parent d440e08 commit c986bef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/jcall/jcall.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
var (
2929
dialTimeout = flag.Duration("dial", 5*time.Second, "Timeout on dialing the server (0 for no timeout)")
3030
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)")
3231
doNotify = flag.Bool("notify", false, "Send a notification")
3332
withContext = flag.Bool("c", false, "Send context with request")
3433
chanFraming = flag.String("f", envOrDefault("JCALL_FRAMING", "raw"), "Channel framing")
@@ -111,7 +110,7 @@ func main() {
111110
// connection; the HTTP client will handle that.
112111
start := time.Now()
113112
var cc channel.Channel
114-
if *doHTTP || isHTTP(flag.Arg(0)) {
113+
if isHTTP(flag.Arg(0)) {
115114
cc = jhttp.NewChannel(flag.Arg(0), nil)
116115
} else if nc := newFraming(*chanFraming); nc == nil {
117116
log.Fatalf("Unknown channel framing %q", *chanFraming)

0 commit comments

Comments
 (0)