Skip to content

Commit

Permalink
refactor: remove redundant protobuf "model" suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Dec 2, 2023
1 parent 055c893 commit 59596a2
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cmd/daemon/controls.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
log "github.com/sirupsen/logrus"
librespot "go-librespot"
"go-librespot/player"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
"go-librespot/tracks"
"math"
"time"
Expand Down
2 changes: 1 addition & 1 deletion cmd/daemon/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"go-librespot/ap"
"go-librespot/dealer"
"go-librespot/player"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
"go-librespot/session"
"go-librespot/tracks"
"google.golang.org/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion cmd/daemon/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
librespot "go-librespot"
"go-librespot/dealer"
"go-librespot/player"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
"go-librespot/tracks"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion dealer/recv.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/json"
"fmt"
log "github.com/sirupsen/logrus"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
"io"
"reflect"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package go_librespot
import (
"encoding/hex"
"fmt"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
"math/big"
"regexp"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion proto/connect.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package spotify.connectstate;
import "connect_player.proto";
import "connect_devices.proto";

option go_package = "go-librespot/proto/spotify/connectstate/model";
option go_package = "go-librespot/proto/spotify/connectstate";

message ClusterUpdate {
Cluster cluster = 1;
Expand Down
2 changes: 1 addition & 1 deletion proto/connect_player.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package spotify.connectstate;

option go_package = "go-librespot/proto/spotify/connectstate/model";
option go_package = "go-librespot/proto/spotify/connectstate";

message PlayerState {
int64 timestamp = 1;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spclient/context_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
log "github.com/sirupsen/logrus"
librespot "go-librespot"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
"io"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion spclient/spclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cenkalti/backoff/v4"
log "github.com/sirupsen/logrus"
librespot "go-librespot"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
storagepb "go-librespot/proto/spotify/download"
metadatapb "go-librespot/proto/spotify/metadata"
"google.golang.org/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion tracks/tracks.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
log "github.com/sirupsen/logrus"
librespot "go-librespot"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
"go-librespot/spclient"
"golang.org/x/exp/rand"
)
Expand Down
2 changes: 1 addition & 1 deletion tracks/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tracks

import (
librespot "go-librespot"
connectpb "go-librespot/proto/spotify/connectstate/model"
connectpb "go-librespot/proto/spotify/connectstate"
)

func ContextTrackComparator(typ librespot.SpotifyIdType, target *connectpb.ContextTrack) func(*connectpb.ContextTrack) bool {
Expand Down

0 comments on commit 59596a2

Please sign in to comment.