From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mEmmGJFEZGZIRwEAe85BDQ:P1 (envelope-from ) for ; Sat, 08 Jun 2024 13:46:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mEmmGJFEZGZIRwEAe85BDQ (envelope-from ) for ; Sat, 08 Jun 2024 13:46:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="C/psbItx"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717847185; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Wh8umcP+cUyWVOuzh/CGBADKWuM7frcCTDtlsjkeH/4=; b=LD1a1IHHixsB1n2TEY81MY4wWHbRcH9CrWt6I0BHUv6eoC5YjD/tlYUaHTIONWF1QQVi+l 2L0qhNgbIPQCLZlIfFuGSunC4tOcS9ybQhPJuEqMkg8+oo6zSTRc2nFK2z4xSOAogsNLhj nJldQ8RFmeZk6egRXWpTOkY2mH7sd+urMOqH42psIhTuR8mfWW1rKv9K4X6xpYuC7Ut2wh MbpaVf+NCWRJF/A/w58tSrInaelZA+QpGg9I23Fm8pnOniWrwtjXCOePyJ0+vzhdijK//N BWHB/uRLpC3ZoQzQhjxMiJBbNaKVoP7gBLOAOjLhXsfURhkvXvDyOe4b+cxwPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717847185; a=rsa-sha256; cv=none; b=ck85k71pfpxCzq9N5lssfCutl03j/nzr3m7JzznNpmJIMP69L6up/u7Yg7Z2+FTJZe4Dya TH71a0CXEa7aykgBorhUybENyK/3nhdpgODMVpKrJ/5SibxMUwSlvAuKayaO5ywZeoa76a xHWpl+9CAM1OHtYr2bbHuprViVW7abj0nk5dfEdjFTwOgijzZBwLuFLpjxiJ+dutPPEnXj /dG0/58GMzUJYIdYudDI7/tas6jCoBs7M1mS3G2QvpXKNIJqtpe2KeOLham88YEw8K0zTa NJ6qv4IC53+yp3se8X2GQQuzy3rasgpI++Ye6WfZVOK5qYoUt4YfYHqJbYF0Lg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="C/psbItx"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1E916C641 for ; Sat, 08 Jun 2024 13:46:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFuWA-0008Jk-52; Sat, 08 Jun 2024 07:45:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFuW3-0008Gg-5v for guix-patches@gnu.org; Sat, 08 Jun 2024 07:45:47 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFuW2-0006vc-2G for guix-patches@gnu.org; Sat, 08 Jun 2024 07:45:46 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFuWH-0007mH-PY for guix-patches@gnu.org; Sat, 08 Jun 2024 07:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71433] [PATCH 2/6] gnu: Add go-github-com-cenkalti-backoff-v4. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jun 2024 11:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71433 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71433@debbugs.gnu.org Cc: "Artyom V. Poptsov" Received: via spool by 71433-submit@debbugs.gnu.org id=B71433.171784713929802 (code B ref 71433); Sat, 08 Jun 2024 11:46:01 +0000 Received: (at 71433) by debbugs.gnu.org; 8 Jun 2024 11:45:39 +0000 Received: from localhost ([127.0.0.1]:37628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFuVv-0007kV-3s for submit@debbugs.gnu.org; Sat, 08 Jun 2024 07:45:39 -0400 Received: from mail-lj1-f175.google.com ([209.85.208.175]:56504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFuVt-0007k5-F2 for 71433@debbugs.gnu.org; Sat, 08 Jun 2024 07:45:38 -0400 Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2ebd95f136bso2278731fa.0 for <71433@debbugs.gnu.org>; Sat, 08 Jun 2024 04:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717847055; x=1718451855; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wh8umcP+cUyWVOuzh/CGBADKWuM7frcCTDtlsjkeH/4=; b=C/psbItxyRBf2KBAXmUNTJe+/Bq0AHlP1pAIL/Sw514l/0DnIFuX3HDLqDm683xhtW YhRBDdtAelTfuZ/eRdb/4UhtzXqS+b40z6ecaExYJR7H9AjbO1TezCywoLL1XkU9ZHEs GEcgM8TpeCnpGjxHWBG9YnGUmIhlqVB8pNKfMzs5WS8pP0EwsySBlLMDzgg9h1Ox5CGH qbDYoTI63fVNsE9n6sQy348NzA/j5NgchAFflAJcQrY5QITeY6iYMp2focDr6e/QD4PB 5Oy4VeLsLBDGi066wtMcSW53VQRJPF68JEvu+F93ZJrHWnukALUAz7l2fisSSzjoWDEU 2IPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717847055; x=1718451855; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wh8umcP+cUyWVOuzh/CGBADKWuM7frcCTDtlsjkeH/4=; b=hN2fU3U6w3vuw0Myw3EFa1C+IOROd7Rtw1F32beX44fLj4sOwKb+ZjzTRtj+qJukWM Gk2YFAq/Hiu2fhRVAo1gSCEtywA0R6EAVYsDc6cONt4hrFQfyEcFr9HN19OzgZYPW68r 19iT//PUDuQz0RUvN9ARO0QT+vVPcxH4Kl5CG0ATk5ugSqtmMwEnCeqdjVHUQF5L8TBM y8UAXmxiJxQi+TjWtkIhsA5LMXFw8uocaW5+5VvhcnvP3nGwF3BV2NjtfhjVQOSpKm3I HHq589vYrZY3ejemy/0xQTWTklFAf8NwAxz3zwzCh/Kc7ugDEk5P0/H/AutCOK4btIlX gX6g== X-Gm-Message-State: AOJu0YzXAVVEtIA5gxF93AJX8iOL5v2jMh6qDKifCfMZq7FxTjhXaaIs FnuwJGhqLHtXMBcAd1p8R4iO+h8V+2fpkbpiYb/M0dkODBBJgBQXHWk4rw== X-Google-Smtp-Source: AGHT+IEQD8Blb46sTA4ENBREU/hs5GASe108JWIU4BMa1RNsCkRrUWyfDD+e5G93jvxj64IFfelmdQ== X-Received: by 2002:a05:651c:210b:b0:2ea:ca11:eef3 with SMTP id 38308e7fff4ca-2eadce15d0bmr37863531fa.4.1717847055014; Sat, 08 Jun 2024 04:44:15 -0700 (PDT) Received: from elephant.. ([95.79.11.228]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ead41dc1fasm8063901fa.136.2024.06.08.04.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 04:44:14 -0700 (PDT) From: "Artyom V. Poptsov" Date: Sat, 8 Jun 2024 14:44:03 +0300 Message-ID: X-Mailer: git-send-email 2.45.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.74 X-Spam-Score: -1.74 X-Migadu-Queue-Id: 1E916C641 X-Migadu-Scanner: mx11.migadu.com X-TUID: 5F+FTvXxXF4M * gnu/packages/golang-web.scm (go-github-com-cenkalti-backoff-v4): New variable. Change-Id: I15ea42bdb1d3ad9a16433e5c6fa689650beb15ea --- gnu/packages/golang-web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 68534ecc9a..367ecfce71 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -456,6 +456,35 @@ (define-public go-github-com-bep-golibsass "This package provides SCSS compiler support for Go applications.") (license license:expat))) +(define-public go-github-com-cenkalti-backoff-v4 + (package + (name "go-github-com-cenkalti-backoff-v4") + (version "4.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cenkalti/backoff") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pwr7fzxgngb073q98qrz1f90bkk3pljynif6jl5a6q6kcsn7xf1")))) + (build-system go-build-system) + (arguments + (list #:go go-1.21 + #:import-path "github.com/cenkalti/backoff/v4")) + (home-page "https://github.com/cenkalti/backoff") + (synopsis "The exponential backoff algorithm in Go") + (description "This is a Go port of the exponential backoff algorithm from +@url{https://github.com/google/google-http-java-client/blob/da1aa993e90285ec18579f1553339b00e19b3ab5/google-http-client/src/main/java/com/google/api/client/util/ExponentialBackOff.java, +Google's HTTP Client Library for Java}. + +@url{http://en.wikipedia.org/wiki/Exponential_backoff, Exponential backoff} is an +algorithm that uses feedback to multiplicatively decrease the rate of some process, +in order to gradually find an acceptable rate. The retries exponentially increase +and stop increasing when a certain threshold is met.") + (license license:expat))) + (define-public go-github-com-chris-ramon-douceur (package (name "go-github-com-chris-ramon-douceur") -- 2.45.1