Implement 5s waiting

This commit is contained in:
erik 2023-12-07 13:54:07 +01:00 committed by Michael Jerger
parent 745598bba4
commit afe659f9f4

View file

@ -9,6 +9,7 @@ import (
"net/http"
"net/url"
"strings"
"time"
"code.gitea.io/gitea/models/activitypub"
"code.gitea.io/gitea/models/db"
@ -324,7 +325,8 @@ func RepositoryInbox(ctx *context.APIContext) {
}
}
// wait 15 sec.
// wait 5 sec.
time.Sleep(5 * time.Second)
ctx.Status(http.StatusNoContent)
}