From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 02 05:15:15 2022 Received: (at 52555) by debbugs.gnu.org; 2 Feb 2022 10:15:15 +0000 Received: from localhost ([127.0.0.1]:51502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFCfT-0000EQ-IF for submit@debbugs.gnu.org; Wed, 02 Feb 2022 05:15:15 -0500 Received: from mout02.posteo.de ([185.67.36.66]:57605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFCfS-0000E8-1m for 52555@debbugs.gnu.org; Wed, 02 Feb 2022 05:15:14 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1867C240103 for <52555@debbugs.gnu.org>; Wed, 2 Feb 2022 11:15:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1643796908; bh=F24uZxUR4m0QVFxi1PSJnCdTyIx4BfXDU2yMpXzp3Eg=; h=From:To:Cc:Subject:Date:From; b=AITTuw9Lej+lm1oZ3xSAgd20JXrXi7cfFZ2vUT4W3Acqrjfaott1ZOH/TAUMWiSLO h49scgS2+1Lq0Qyva3WbPEWASp3Hbd4A8Tcp2T/ubxVpS7cDWw58YqMiQJkbH8DaxK BeWF/oZ7hHr+aeUuP/YRiI2ozPtkkc1+FnaL9fd7HLeRdXaiup+lyxER79LMf4RnEb mcRIXYyVz7bHoCtRs3EX4E2MdTHCCfAvwBo2nC4hYk1YqKV78HV1EWOd+L1Or3E1bS lXv66xaAmU5PCy8bRUu/Nc+UdJMwTO/Blb7FtTJFyXAPLZ2cZtm70SFxYnnvs1gVHm SfT+wFQ4odTHQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Jpd2y5QZzz6tpG; Wed, 2 Feb 2022 11:15:06 +0100 (CET) References: <20220125192201.7582-1-pukkamustard@posteo.net> <20220125192201.7582-6-pukkamustard@posteo.net> <00bb85fa4fb62498b354ecb78d248df5209b6f29.camel@telenet.be> From: pukkamustard To: Maxime Devos Subject: Re: [bug#52555] [RFC PATCH v2 5/5] substitute: Fetch substitutes using ERIS. Date: Wed, 02 Feb 2022 10:11:18 +0000 In-reply-to: <00bb85fa4fb62498b354ecb78d248df5209b6f29.camel@telenet.be> Message-ID: <861r0linh1.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52555 Cc: ~pukkamustard/eris@lists.sr.ht, 52555@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Maxime Devos writes: > [[PGP Signed Part:Undecided]] > pukkamustard schreef op di 25-01-2022 om 19:22 [+0000]: >> +(define (guix-eris-block-ref ref) >> +=C2=A0 "Dereference a block for decoding ERIS content" >> +=C2=A0 (eris-blocks-ipfs-ref ref)) > > 'guix-eris-block-ref' just calls 'eris-blocks-ipfs-ref', > so I'm not seeing the point of this procedure. Yes, currently it is an unnecessary level of abstraction. The idea is that when there are multiple backends/transports they are multiplexed here. E.g. guix-eris-block-ref would attempt to use HTTP/IPFS or whatever to get the block. Whatever calls guix-eris-block-ref does not need to know from where the blocks come. I hope to make this more clear in a V3 that will add HTTP transport. -pukkamustard