Skip to content

Commit 84a458c

Browse files
authored
Merge branch 'main' into codex/implement-distribution-engine-with-grpc-service-jkek27
2 parents 41a33f1 + ae05d76 commit 84a458c

File tree

10 files changed

+346
-108
lines changed

10 files changed

+346
-108
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
with:
1919
submodules: true
2020
# - name: Set up QEMU

.github/workflows/go-mod-fix.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: checkout
12-
uses: actions/checkout@v4
12+
uses: actions/checkout@v5
1313
with:
1414
fetch-depth: 2
1515
- name: fix

.github/workflows/go-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
os: [ [ubuntu-latest] ]
1616
runs-on: ${{ matrix.os }}
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919
- uses: actions/setup-go@v5
2020
with:
2121
go-version-file: 'go.mod'

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out code into the Go module directory
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
- name: golangci-lint
1919
uses: reviewdog/action-golangci-lint@v2
2020
with:

adapter/dynamodb.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,19 @@ type DynamoDBServer struct {
3333
}
3434

3535
func NewDynamoDBServer(listen net.Listener, st store.ScanStore, coordinate *kv.Coordinate) *DynamoDBServer {
36-
return &DynamoDBServer{
36+
d := &DynamoDBServer{
3737
listen: listen,
3838
store: st,
3939
coordinator: coordinate,
4040
dynamoTranscoder: newDynamoDBTranscoder(),
4141
}
42-
}
43-
44-
func (d *DynamoDBServer) Run() error {
4542
mux := http.NewServeMux()
4643
mux.HandleFunc("/", d.handle)
4744
d.httpServer = &http.Server{Handler: mux, ReadHeaderTimeout: time.Second}
45+
return d
46+
}
47+
48+
func (d *DynamoDBServer) Run() error {
4849
if err := d.httpServer.Serve(d.listen); err != nil && !errors.Is(err, http.ErrServerClosed) {
4950
return errors.WithStack(err)
5051
}

0 commit comments

Comments
 (0)