From 438c015767f7cb8202821e061c47907d7044dea1 Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Sun, 10 Dec 2023 21:27:39 -0800 Subject: [PATCH] refactor: Changed some variable names after the new refactoring --- visualization/visualize_chunk.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/visualization/visualize_chunk.go b/visualization/visualize_chunk.go index afc41d3..8e446d3 100644 --- a/visualization/visualize_chunk.go +++ b/visualization/visualize_chunk.go @@ -4,6 +4,7 @@ import ( "errors" "strings" + "git.nicholasnovak.io/nnovak/spatial-db/server" "git.nicholasnovak.io/nnovak/spatial-db/storage" "git.nicholasnovak.io/nnovak/spatial-db/world" tea "github.com/charmbracelet/bubbletea" @@ -40,7 +41,7 @@ var ( ) type chunkViewerModel struct { - chunkServer *storage.SimpleServer + chunkServer *server.SimpleServer visibleChunkRows int visibleChunkCols int @@ -127,7 +128,7 @@ func (m chunkViewerModel) View() string { return s.String() } -func initChunkViewer(chunkServer *storage.SimpleServer) chunkViewerModel { +func initChunkViewer(chunkServer *server.SimpleServer) chunkViewerModel { var model chunkViewerModel model.chunkServer = chunkServer @@ -142,7 +143,7 @@ var VisualizeChunkCommand = &cobra.Command{ RunE: func(cmd *cobra.Command, args []string) error { // Create a new server to read from those files - var chunkServer storage.SimpleServer + var chunkServer server.SimpleServer chunkServer.StorageDir = args[0] prog := tea.NewProgram(initChunkViewer(&chunkServer), tea.WithAltScreen())