File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM mcr.microsoft.com/devcontainers/base:jammy
2
2
3
3
# Combine installation steps for Nginx and Go to avoid repetitive update/cleanup commands
4
4
RUN apt-get update && \
5
- apt-get install -y --no-install-recommends curl gnupg2 ca-certificates lsb-release ubuntu-keyring jq && \
5
+ apt-get install -y --no-install-recommends curl gnupg2 ca-certificates lsb-release ubuntu-keyring jq cloc && \
6
6
\
7
7
# Configure the Nginx repository
8
8
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor > /usr/share/keyrings/nginx-archive-keyring.gpg && \
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ func cleanExpiredAuthToken() {
70
70
logger .Debug ("clean expired auth tokens" )
71
71
q := query .AuthToken
72
72
_ , _ = q .Where (q .ExpiredAt .Lt (time .Now ().Unix ())).Delete ()
73
- }), gocron .WithSingletonMode (gocron .LimitModeWait ))
73
+ }), gocron .WithSingletonMode (gocron .LimitModeWait ), gocron . JobOption ( gocron . WithStartImmediately ()) )
74
74
75
75
if err != nil {
76
76
logger .Fatalf ("CleanExpiredAuthToken Err: %v\n " , err )
You can’t perform that action at this time.
0 commit comments