Skip to content

Commit

Permalink
make ID only 12 chars long.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Sep 30, 2023
1 parent 06b5969 commit 9e60fdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/room/containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (manager *RoomManagerCtx) containerToEntry(container dockerTypes.Container)
}

entry := &types.RoomEntry{
ID: container.ID,
ID: container.ID[:12],
URL: labels.URL,
Name: labels.Name,
NekoImage: labels.NekoImage,
Expand Down
2 changes: 1 addition & 1 deletion internal/room/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (manager *RoomManagerCtx) Create(settings types.RoomSettings) (string, erro
return "", err
}

return container.ID, nil
return container.ID[:12], nil
}

func (manager *RoomManagerCtx) GetEntry(id string) (*types.RoomEntry, error) {
Expand Down

0 comments on commit 9e60fdd

Please sign in to comment.