From d2c5a62482901fc5c2b7a29a42542c2ab12f97aa Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Mon, 11 May 2026 20:28:32 +0900 Subject: [PATCH] knotserver/git: reduce the lastCommitDirIn timeout to 500ms from 2s Signed-off-by: Seongmin Lee --- knotserver/git/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knotserver/git/tree.go b/knotserver/git/tree.go index 3553ccff..b243f985 100644 --- a/knotserver/git/tree.go +++ b/knotserver/git/tree.go @@ -58,7 +58,7 @@ func (g *GitRepo) makeNiceTree(ctx context.Context, subtree *object.Tree, parent entries: entries, } - times, err := g.lastCommitDirIn(ctx, lastCommitDir, 2*time.Second) + times, err := g.lastCommitDirIn(ctx, lastCommitDir, 500*time.Millisecond) if err != nil { return nts } -- 2.51.2