diff --git a/network/network.go b/network/network.go index b68a36742..71c540706 100644 --- a/network/network.go +++ b/network/network.go @@ -32,7 +32,7 @@ var _ Network = &network{} type network struct { ctx context.Context - cancel func() + cancel context.CancelFunc config *Config host lp2phost.Host mdns *mdnsService diff --git a/sync/sync.go b/sync/sync.go index 72879cc1f..7c5819a8a 100644 --- a/sync/sync.go +++ b/sync/sync.go @@ -31,7 +31,7 @@ import ( type synchronizer struct { ctx context.Context - cancel func() + cancel context.CancelFunc config *Config valKeys []*bls.ValidatorKey state state.Facade diff --git a/www/grpc/server.go b/www/grpc/server.go index bc9660f9d..ea09583c1 100644 --- a/www/grpc/server.go +++ b/www/grpc/server.go @@ -15,7 +15,7 @@ import ( type Server struct { ctx context.Context - cancel func() + cancel context.CancelFunc config *Config listener net.Listener address string diff --git a/www/http/server.go b/www/http/server.go index 3aec268a8..ea58e1e08 100644 --- a/www/http/server.go +++ b/www/http/server.go @@ -22,7 +22,7 @@ import ( type Server struct { ctx context.Context - cancel func() + cancel context.CancelFunc config *Config router *mux.Router grpcClient *grpc.ClientConn diff --git a/www/nanomsg/server.go b/www/nanomsg/server.go index 1a9aea6a2..d8b62dd36 100644 --- a/www/nanomsg/server.go +++ b/www/nanomsg/server.go @@ -15,7 +15,7 @@ import ( type Server struct { ctx context.Context - cancel func() + cancel context.CancelFunc config *Config publisher mangos.Socket listener net.Listener