Skip to content

Commit

Permalink
Perform garbace collection between setup and running server
Browse files Browse the repository at this point in the history
  • Loading branch information
mback2k committed Dec 18, 2018
1 parent e985af4 commit 0968bd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package main

import (
"log"
"runtime"

smtp "github.com/emersion/go-smtp"
)
Expand Down Expand Up @@ -55,6 +56,8 @@ func setupServer() *smtp.Server {
func main() {
s := setupServer()

runtime.GC()

if err := runServer(s); err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 0968bd9

Please sign in to comment.