From 6a231844ef03912980217a4486fc804fc3a49e2f Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 7 Jan 2022 12:44:26 +0000 Subject: [PATCH] fix readm --- carbon/README.md | 2 +- carbon/handler/carbon.go | 2 +- carbon/proto/carbon.proto | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/carbon/README.md b/carbon/README.md index 3c9bf57..dfb39ae 100644 --- a/carbon/README.md +++ b/carbon/README.md @@ -3,7 +3,7 @@ Purchase carbon offsets # Carbon Service Purchase carbon offsets to help climate change and achieve carbon neutrality. -Offset purchases are currently limited to 1kg (or 0.001 tonnes) per request. +Offset purchases are currently limited to 1 tonne per request. Make multiple requests to purchase the required amount. Powered by [Ecologi](https://ecologi.com/) diff --git a/carbon/handler/carbon.go b/carbon/handler/carbon.go index 973f623..baad2ad 100644 --- a/carbon/handler/carbon.go +++ b/carbon/handler/carbon.go @@ -50,7 +50,7 @@ func (c *Carbon) Offset(ctx context.Context, req *pb.OffsetRequest, rsp *pb.Offs // currently do not support options r := &domain.OffsetRequest{ - Number: 1, + Number: 1000, Units: "KG", } diff --git a/carbon/proto/carbon.proto b/carbon/proto/carbon.proto index d12e088..d4b57f9 100644 --- a/carbon/proto/carbon.proto +++ b/carbon/proto/carbon.proto @@ -17,7 +17,7 @@ message Project { double tonnes = 3; } -// Purchase 1kg (0.001 tonnes) of carbon offsets in a single request +// Purchase 1 tonne of carbon offsets in a single request message OffsetRequest {} message OffsetResponse {