From 97b49ae7081b989274b313532ff17c71694097a9 Mon Sep 17 00:00:00 2001 From: Murilo Ijanc Date: Mon, 27 Jul 2026 21:12:05 -0300 Subject: Read the faixa from the client instead of fetching it again cep.is/go v0.2.0 exposes the municipality as Error.Faixa, which is what internal/lookup existed to work around: v0.1.0 discarded the 404 body, so the bot re-issued the request just to read the block back. The extra GET on the 404 path is gone, and with it the second timeout, the body size cap and the "is it still a 404?" check that guarded it. The replies are byte for byte what they were -- the formatting tests did not change a single assertion, only the type they build. --- go.sum | 2 ++ 1 file changed, 2 insertions(+) (limited to 'go.sum') diff --git a/go.sum b/go.sum index dde6d3c..2d976c1 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,4 @@ cep.is/go v0.0.0-20260726172041-323d9a8422f0 h1:dafV2FEOBQi4/hLSn6c+8NWh4PN6s+80AB0iAyLz6JQ= cep.is/go v0.0.0-20260726172041-323d9a8422f0/go.mod h1:scg4o+dKixPVgqiEkccyZnwkNdzt1tRfdLf0bzaGAj4= +cep.is/go v0.2.0 h1:ZkZMJmybON2TINEZXWBsbSvwEFKRJ1EiLHaYPAjUVLY= +cep.is/go v0.2.0/go.mod h1:scg4o+dKixPVgqiEkccyZnwkNdzt1tRfdLf0bzaGAj4= -- cgit v1.3