Skip to content

Commit

Permalink
fix: increase processing time for old network to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalSin9h committed Feb 11, 2024
1 parent c9aaea8 commit 8f18ce3
Show file tree
Hide file tree
Showing 5 changed files with 212 additions and 210 deletions.
6 changes: 3 additions & 3 deletions internal/core/application/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@ func createNetwork(cli *client.Client, appName string) (string, error) {
slog.Info("Creating network")
networkName := appName + "_default"

// waiting for 5 seconds, if old network is in deletion process
// waiting for 10 seconds, if old network is in deletion process
// this problem only occur only recreating application
// in that case, old network was not deleted and we try to create a new network already
slog.Info("waiting for 5 seconds, if old network is in deletion process")
time.Sleep(5 * time.Second)
slog.Info("waiting for 10 seconds, if old network is in deletion process")
time.Sleep(10 * time.Second)

nets, err := cli.NetworkList(context.Background(), types.NetworkListOptions{})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion server/rateLimiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

var (
D_MAX = 100 // nolint
D_MAX = 150 // nolint
D_EXPIRATION = 30 * time.Second // nolint
)

Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion server/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Meltcd</title>
<script type="module" crossorigin src="/assets/index-0618fb87.js"></script>
<script type="module" crossorigin src="/assets/index-c26e4911.js"></script>
<link rel="stylesheet" href="/assets/index-0a3e86d4.css">
</head>
<body>
Expand Down
Loading

0 comments on commit 8f18ce3

Please sign in to comment.