From 342ba6805301fc51f83ce182ee7f599fccd7a203 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Fri, 10 Dec 2021 03:28:09 +0100 Subject: [PATCH] add copyright header to streams backends (#3177) This adds the common copyright header to `libp2p_streams_backend.nim` and `faststreams_backend.nim`. It was not present before in these file. --- beacon_chain/networking/faststreams_backend.nim | 8 +++++++- beacon_chain/networking/libp2p_streams_backend.nim | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/beacon_chain/networking/faststreams_backend.nim b/beacon_chain/networking/faststreams_backend.nim index 4dbc01526..91d00aae3 100644 --- a/beacon_chain/networking/faststreams_backend.nim +++ b/beacon_chain/networking/faststreams_backend.nim @@ -1,3 +1,10 @@ +# beacon_chain +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + type LibP2PInputStream = ref object of InputStream conn: Connection @@ -131,4 +138,3 @@ proc readResponse(s: AsyncInputStream, return await s.readResponseChunk(noSnappy, MsgType) else: return neterr UnexpectedEOF - diff --git a/beacon_chain/networking/libp2p_streams_backend.nim b/beacon_chain/networking/libp2p_streams_backend.nim index 8ab21f054..a8fc36d89 100644 --- a/beacon_chain/networking/libp2p_streams_backend.nim +++ b/beacon_chain/networking/libp2p_streams_backend.nim @@ -1,3 +1,10 @@ +# beacon_chain +# Copyright (c) 2018-2021 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + # TODO: How can this be tested? proc uncompressFramedStream*(conn: Connection, expectedSize: int): Future[Result[seq[byte], cstring]]