From 820f0962ca320b72f9dc0b33fc855858350698dd Mon Sep 17 00:00:00 2001 From: tgmtime Date: Tue, 14 May 2024 12:55:57 +0300 Subject: [PATCH] add tag --- rpc/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpc/client.go b/rpc/client.go index aa3fbed4aa..28384b6cd7 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -200,6 +200,8 @@ func DialOptions(ctx context.Context, rawurl string, options ...ClientOption) (* } cfg := new(clientConfig) + + //http1.1 => http2 tr := &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // İsteğe bağlı, güvenlik önlemleri gerektiğinde uygun şekilde ayarlayın ForceAttemptHTTP2: true, // !!!note: bu kısmı eklersen HTTP/2'yi etkinleştirirsin eklemezsende default olarak http1.1 çalışır