missed a lock
This commit is contained in:
parent
ad893eaec9
commit
4cead30ea5
@ -24,7 +24,9 @@ func PollMastodonPleroma(endpoint string, reportPostChan chan ReportPost) {
|
||||
http_client := http.Client{Timeout: 5 * time.Second}
|
||||
|
||||
for {
|
||||
ri_mutex.Lock()
|
||||
m := runninginstances[endpoint]
|
||||
ri_mutex.Unlock()
|
||||
|
||||
api_timeline := "https://" + endpoint + "/api/v1/timelines/public?limit=40&min_id=" + min_id
|
||||
resp, err := http_client.Get(api_timeline)
|
||||
|
Loading…
x
Reference in New Issue
Block a user