From 0e7a466d4be535dd7c7468d8d102b3c7b299d9bc Mon Sep 17 00:00:00 2001 From: NSMBot Date: Tue, 11 May 2021 14:23:28 +0000 Subject: [PATCH] Update go.mod and go.sum to latest version from networkservicemesh/sdk@main networkservicemesh/sdk# networkservicemesh/sdk PR link: https://github.com/networkservicemesh/sdk/pull/ networkservicemesh/sdk commit message: commit 93d252947219d952fd428e98e86e63ea17550579 Author: Uzlov Danil <36223296+d-uzlov@users.noreply.github.com> Date: Tue May 11 21:22:51 2021 +0700 Add onidle chain element (#908) * add endpointtimeout chain element Signed-off-by: Danil Uzlov * fix TestEndpointTimeout_ContextCancel instability Signed-off-by: Danil Uzlov * make endpointTimeoutServer track connections, fix concurrency issues Signed-off-by: Danil Uzlov * rename package endpointtimeout to idlenotifier Signed-off-by: Danil Uzlov * fix formatting Signed-off-by: Danil Uzlov * add HoldingActiveRequest test, clean code Signed-off-by: Danil Uzlov * fix race in *endpointTimeoutServer) Signed-off-by: Danil Uzlov * add TestIdleNotifier_FailedRequest Signed-off-by: Danil Uzlov * fix missing error check Signed-off-by: Danil Uzlov * make idlenotifier.notify action argument mandatory Signed-off-by: Danil Uzlov * rename package idlenotifier to onidle Signed-off-by: Danil Uzlov * fix TestIdleNotifier_ContextCancel instability Signed-off-by: Danil Uzlov * clean code Signed-off-by: Danil Uzlov * fix race in onIdleServer Signed-off-by: Danil Uzlov * fix timer leak Signed-off-by: Danil Uzlov * use require.Eventually + goleak.Find instead of time.Sleep in TestIdleNotifier_ContextCancel Signed-off-by: Danil Uzlov * remove excessive removeConnection call Signed-off-by: Danil Uzlov * use simple map instead of sync.Map in onIdleServer Signed-off-by: Danil Uzlov * adjuct comments Signed-off-by: Danil Uzlov * refactor timer handling Signed-off-by: Danil Uzlov * add TestIdleNotifier_RequestAfterExpire test Signed-off-by: Danil Uzlov * remove unneeded check from TestIdleNotifier_ContextCancel Signed-off-by: Danil Uzlov * fix non-american "cancelled" spelling error Signed-off-by: Danil Uzlov * add extra check for context error Signed-off-by: Danil Uzlov * increase check timeout from 50ms to 100ms Signed-off-by: Danil Uzlov * extract notify callback to be not under the mutex Signed-off-by: Danil Uzlov * apply suggestions from code review Signed-off-by: Danil Uzlov Signed-off-by: NSMBot --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index d28bb2f..9a6edb1 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/edwarnicke/grpcfd v0.1.0 github.com/kelseyhightower/envconfig v1.4.0 github.com/networkservicemesh/api v0.0.0-20210509180413-5753c9f30588 - github.com/networkservicemesh/sdk v0.0.0-20210511111259-ac8b8656d69a + github.com/networkservicemesh/sdk v0.0.0-20210511142251-93d252947219 github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.7.0 github.com/spiffe/go-spiffe/v2 v2.0.0-alpha.4.0.20200528145730-dc11d0c74e85 diff --git a/go.sum b/go.sum index 25ede4c..225090a 100644 --- a/go.sum +++ b/go.sum @@ -120,8 +120,8 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS github.com/nats-io/stan.go v0.6.0/go.mod h1:eIcD5bi3pqbHT/xIIvXMwvzXYElgouBvaVRftaE+eac= github.com/networkservicemesh/api v0.0.0-20210509180413-5753c9f30588 h1:DZZpus9B5AU8nADoDz4Pne6yRqOBV1/eToenIg+djM8= github.com/networkservicemesh/api v0.0.0-20210509180413-5753c9f30588/go.mod h1:B6meq/SWjWR6bGXZdXPfbOeaBK+T1JayLdtEJQCsXKU= -github.com/networkservicemesh/sdk v0.0.0-20210511111259-ac8b8656d69a h1:6vlk8g2lKeoudxr6fy/IP1syjdeCzXnqL7mAUR0R8pM= -github.com/networkservicemesh/sdk v0.0.0-20210511111259-ac8b8656d69a/go.mod h1:hywWppzbWM9nfa2GyxCiLz/RtZOZEjrSWl8jTQniV9o= +github.com/networkservicemesh/sdk v0.0.0-20210511142251-93d252947219 h1:ze74m6A6s2E10QKL+cQz7Z8BNYMwuX8XOQlcHT8uWO8= +github.com/networkservicemesh/sdk v0.0.0-20210511142251-93d252947219/go.mod h1:hywWppzbWM9nfa2GyxCiLz/RtZOZEjrSWl8jTQniV9o= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=