Closed auth and motd files in main after they are no longer needed
This commit is contained in:
parent
39e8eca0ef
commit
99050c7943
2
main.go
2
main.go
@ -39,6 +39,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
f.Close()
|
||||||
|
|
||||||
lines := strings.Split(string(data[:size]), "\n")
|
lines := strings.Split(string(data[:size]), "\n")
|
||||||
for _, line := range lines {
|
for _, line := range lines {
|
||||||
@ -65,6 +66,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
f.Close()
|
||||||
|
|
||||||
server.motd = string(data[:size])
|
server.motd = string(data[:size])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user