Skip to content

Commit

Permalink
Update Database::NewDatabaseWithID()
Browse files Browse the repository at this point in the history
  • Loading branch information
cybergarage committed Jan 13, 2023
1 parent 59f580a commit 57f75c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/go-redis-server/server/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import (
// Database represents a database.
type Database struct {
ID int
Records
*Records
}

// NewDatabaseWithID returns a new database with the specified ID.
func NewDatabaseWithID(id int) *Database {
return &Database{
ID: id,
Records: Records{},
Records: NewRecords(),
}
}

Expand Down

0 comments on commit 57f75c1

Please sign in to comment.