Skip to content

Commit

Permalink
Fix wrong method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao committed Mar 17, 2024
1 parent a5a4dd0 commit 62874d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maelstrom/grpc_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package main

import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
"log/slog"
Expand Down Expand Up @@ -51,7 +52,8 @@ func newMaelstromGrpcProvider() *maelstromGrpcProvider {
}
}

func (m *maelstromGrpcProvider) StartGrpcServer(name, _ string, registerFunc func(grpc.ServiceRegistrar)) (container.GrpcServer, error) {
func (m *maelstromGrpcProvider) StartGrpcServer(name, _ string, registerFunc func(grpc.ServiceRegistrar),
_ *tls.Config) (container.GrpcServer, error) {
slog.Info(
"Start Grpc server",
slog.String("name", name),
Expand Down

0 comments on commit 62874d4

Please sign in to comment.