this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

disconnect a pds when we block it

authored by

Brian Olson and committed by
Brian Olson
3232473a ad3c38b9

+4
+3
bgs/admin.go
··· 264 264 return err 265 265 } 266 266 267 + // don't care if this errors, but we should try to disconnect something we just blocked 268 + _ = bgs.slurper.KillUpstreamConnection(host, false) 269 + 267 270 return e.JSON(200, map[string]any{ 268 271 "success": "true", 269 272 })
+1
bgs/fedmgr.go
··· 745 745 return fmt.Errorf("killing connection %q: %w", host, ErrNoActiveConnection) 746 746 } 747 747 ac.cancel() 748 + // cleanup in the run thread subscribeWithRedialer() will delete(s.active, host) 748 749 749 750 if block { 750 751 if err := s.db.Model(models.PDS{}).Where("id = ?", ac.pds.ID).UpdateColumn("blocked", true).Error; err != nil {