repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
59ed168
parent
d946a84
author
Antonio Mika
date
2024-11-17 20:41:59 +0000 UTC
Update to add read and write timeouts
3 files changed,  +4, -4
M go.mod
M go.sum
M go.mod
+1, -1
1@@ -41,7 +41,7 @@ require (
2 	github.com/picosh/pubsub v0.0.0-20241114191831-ec8f16c0eb88
3 	github.com/picosh/send v0.0.0-20241107150437-0febb0049b4f
4 	github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9
5-	github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8
6+	github.com/picosh/utils v0.0.0-20241117203114-3decbe6f0cec
7 	github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
8 	github.com/sendgrid/sendgrid-go v3.16.0+incompatible
9 	github.com/simplesurance/go-ip-anonymizer v0.0.0-20200429124537-35a880f8e87d
M go.sum
+2, -2
 1@@ -277,10 +277,10 @@ github.com/picosh/senpai v0.0.0-20240503200611-af89e73973b0 h1:pBRIbiCj7K6rGELij
 2 github.com/picosh/senpai v0.0.0-20240503200611-af89e73973b0/go.mod h1:QaBDtybFC5gz7EG/9c3bgzuyW7W5W2rYLFZxWNuWk3Q=
 3 github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9 h1:g5oZmnDFr11HarA8IAXcc4o9PBlolSM59QIATCSoato=
 4 github.com/picosh/tunkit v0.0.0-20240905223921-532404cef9d9/go.mod h1:UrDH/VCIc1wg/L6iY2zSYt4TiGw+25GsKSnkVkU40Dw=
 5-github.com/picosh/utils v0.0.0-20241116191332-39c204dc4605 h1:A9yRvOupUH9gxGJ/r+4x2RL2uZVEf2Am2AfiLrAfaTg=
 6-github.com/picosh/utils v0.0.0-20241116191332-39c204dc4605/go.mod h1:HogYEyJ43IGXrOa3D/kjM1pkzNAyh+pejRyv8Eo//pk=
 7 github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8 h1:3uaXGZr8Or53Eq13F9fsbi1F/tmxcWEFboZeEphYpyE=
 8 github.com/picosh/utils v0.0.0-20241117170405-a9640fad84c8/go.mod h1:HogYEyJ43IGXrOa3D/kjM1pkzNAyh+pejRyv8Eo//pk=
 9+github.com/picosh/utils v0.0.0-20241117203114-3decbe6f0cec h1:syh21+XscCDAWFimYTyeJL+LQXTsKz+/mv5cHw6l2Cc=
10+github.com/picosh/utils v0.0.0-20241117203114-3decbe6f0cec/go.mod h1:HogYEyJ43IGXrOa3D/kjM1pkzNAyh+pejRyv8Eo//pk=
11 github.com/pkg/sftp v1.13.7 h1:uv+I3nNJvlKZIQGSr8JVQLNHFU9YhhNpvC14Y6KgmSM=
12 github.com/pkg/sftp v1.13.7/go.mod h1:KMKI0t3T6hfA+lTR/ssZdunHo+uwq7ghoN09/FSu3DY=
13 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
M shared/analytics.go
+1, -1
1@@ -175,7 +175,7 @@ func AnalyticsCollect(ch chan *db.AnalyticsVisits, dbpool db.DB, logger *slog.Lo
2 		return
3 	}
4 
5-	s, err := metricDrain.AddSession("metric-drain", "pub metric-drain -b=false", 100, 10*time.Millisecond)
6+	s, err := metricDrain.AddSession("metric-drain", "pub metric-drain -b=false", 100, 0, 10*time.Millisecond)
7 	if err != nil {
8 		logger.Error("could not add session for metric-drain", "err", err)
9 		return