From 66308ed6fdb1edaee6d925d5780710721566fd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mien=20Kocher?= Date: Fri, 9 Sep 2022 14:11:57 +0200 Subject: [PATCH] Updates Dela - adds a fix for DKG --- go.mod | 2 +- go.sum | 4 ++-- services/dkg/pedersen/handler.go | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 708aa7ec3..bae936237 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/rs/zerolog v1.19.0 github.com/stretchr/testify v1.7.0 github.com/uber/jaeger-client-go v2.25.0+incompatible - go.dedis.ch/dela v0.0.0-20220727144418-4a9466c2c294 + go.dedis.ch/dela v0.0.0-20220909115533-ad4f281a552f go.dedis.ch/dela-apps v0.0.0-20211019120455-a0db752a0ba0 go.dedis.ch/kyber/v3 v3.1.0-alpha golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f diff --git a/go.sum b/go.sum index 6539bccd6..1faf48a19 100644 --- a/go.sum +++ b/go.sum @@ -244,8 +244,8 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= go.dedis.ch/dela v0.0.0-20211018150429-1fdbe35cd189/go.mod h1:GVQ2MumgCcAkor2MmfRCoqTBsFjaaqt7HfJpQLhMGok= -go.dedis.ch/dela v0.0.0-20220727144418-4a9466c2c294 h1:q+kgJ4Cso4daxyR1owhz5jmFNxTG/O0xI4O/ppHaPdQ= -go.dedis.ch/dela v0.0.0-20220727144418-4a9466c2c294/go.mod h1:IIIV0aR0f1c9z4jRB2HVYYeLK7XbQ6pfqv6RufaXmUg= +go.dedis.ch/dela v0.0.0-20220909115533-ad4f281a552f h1:xOO4YMx06/ERkiTtoJ9pneDJ033Ym9i8zI6NIbsOmPg= +go.dedis.ch/dela v0.0.0-20220909115533-ad4f281a552f/go.mod h1:IIIV0aR0f1c9z4jRB2HVYYeLK7XbQ6pfqv6RufaXmUg= go.dedis.ch/dela-apps v0.0.0-20211019120455-a0db752a0ba0 h1:gPrJd+7QUuADpfToMKr80maGnjGPeB7ft7iNrkAtwGY= go.dedis.ch/dela-apps v0.0.0-20211019120455-a0db752a0ba0/go.mod h1:MoJSdm3LXkNtiKEK3eiBKgqFhory4v8sBr7ldFP/vFc= go.dedis.ch/fixbuf v1.0.3 h1:hGcV9Cd/znUxlusJ64eAlExS+5cJDIyTyEG+otu5wQs= diff --git a/services/dkg/pedersen/handler.go b/services/dkg/pedersen/handler.go index 70135bf72..925071f9f 100644 --- a/services/dkg/pedersen/handler.go +++ b/services/dkg/pedersen/handler.go @@ -124,6 +124,9 @@ func (h *Handler) Stream(out mino.Sender, in mino.Receiver) error { if !h.startRes.Done() { // This is the first setup h.running = true + defer func() { + h.running = false + }() } h.Unlock()