Skip to content

Commit 71d5f2e

Browse files
authored
Merge pull request #111 from singh-shubham/patch-1
Embed unimplemented Server structs for interface updates
2 parents 020d8b1 + fd24101 commit 71d5f2e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

server/server.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ type server struct {
6161

6262
sessionMu sync.RWMutex
6363
sessions map[string]*session
64+
65+
// Embed the unimplemented Server structs to avoid having to update the server
66+
// implementation whenever there is an addition to any of the three interfaces.
67+
spannerpb.UnimplementedSpannerServer
68+
adminv1pb.UnimplementedDatabaseAdminServer
69+
lropb.UnimplementedOperationsServer
6470
}
6571

6672
func (s *server) ApplyDDL(ctx context.Context, databaseName string, stmt ast.DDL) error {

0 commit comments

Comments
 (0)