Skip to content

Commit af617f5

Browse files
small fi
1 parent 27b3bcf commit af617f5

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
ARG GO_VERSION=1.25.4-alpine
1212
FROM --platform=$BUILDPLATFORM golang:${GO_VERSION} AS build
1313
WORKDIR /src
14-
RUN apk add build-base
14+
RUN apk add build-base=0.5-r3
1515
# Download dependencies as a separate step to take advantage of Docker's caching.
1616
# Leverage a cache mount to /go/pkg/mod/ to speed up subsequent builds.
1717
# Leverage bind mounts to go.sum and go.mod to avoid having to copy them into

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ Loggerhead is still early, but there’s a clear path for where it’s going.
291291
* [ ] **Optional RAFT-based consistency** – enable a RAFT mode for stronger consistency within a cluster (trading some performance for guarantees). Planned for `0.1.0`.
292292
* [ ] **Sharding by namespace** – shard namespaces across TreeNodes with primary + replication (multiple RAFT groups in parallel). Planned for `0.2.0`.
293293
* [ ] **Durability** – store and recover state from disk. Planned for `0.3.0`.
294+
* [ ] **Tests for the Docker image**
294295

295296
### Already done
296297

main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/fabricekabongo/loggerhead/world"
65
"math/rand"
76
"net"
87
"strconv"
98
"sync/atomic"
109
"testing"
10+
11+
"github.com/fabricekabongo/loggerhead/world"
1112
)
1213

1314
func CreateRandomLocation(seed int) (*world.Location, error) {
@@ -20,8 +21,7 @@ func CreateRandomLocation(seed int) (*world.Location, error) {
2021
}
2122

2223
func BenchmarkDatabase(b *testing.B) {
23-
var connPool map[int]net.Conn
24-
connPool = make(map[int]net.Conn, 40)
24+
var connPool map[int]net.Conn = make(map[int]net.Conn, 40)
2525
for i := 0; i < 40; i++ {
2626
conn, err := net.Dial("tcp", "localhost:19999")
2727
if err != nil {

server/listener.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ func (h *Handler) handleConnection(conn net.Conn) error {
123123
break
124124
}
125125

126-
var response string
127-
response = h.QueryEngine.ExecuteQuery(line)
126+
var response string = h.QueryEngine.ExecuteQuery(line)
128127
_, err := conn.Write([]byte(response))
129128

130129
if err != nil {

0 commit comments

Comments
 (0)