1. Fix wrong atomic pkg from go1.19 std sync/atomic to go.uber.org/atomic (#1479)

2. Fix CI buildtest config '>=1.18' to '1.18',ensure compatibility with go1.18
This commit is contained in:
imcdd
2023-03-07 23:27:26 -08:00
committed by GitHub
parent 11ae7fdbb6
commit 1f4fd6aafe
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v3 uses: actions/setup-go@v3
with: with:
go-version: '>=1.18' go-version: '1.18'
- name: Set up gotestfmt - name: Set up gotestfmt
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1 run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1
+1 -1
View File
@@ -246,7 +246,7 @@ Read our [deployment docs](https://docs.livekit.io/deploy/) for more information
Pre-requisites: Pre-requisites:
- Go 1.16+ is installed - Go 1.18+ is installed
- GOPATH/bin is in your PATH - GOPATH/bin is in your PATH
Then run Then run
+1 -1
View File
@@ -19,10 +19,10 @@ package rtc
import ( import (
"context" "context"
"sync" "sync"
"sync/atomic"
"time" "time"
"github.com/pion/webrtc/v3/pkg/rtcerr" "github.com/pion/webrtc/v3/pkg/rtcerr"
"go.uber.org/atomic"
"github.com/livekit/livekit-server/pkg/rtc/types" "github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/sfu" "github.com/livekit/livekit-server/pkg/sfu"
+1 -1
View File
@@ -18,11 +18,11 @@ package rtc
import ( import (
"sync" "sync"
"sync/atomic"
"testing" "testing"
"time" "time"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.uber.org/atomic"
"github.com/livekit/livekit-server/pkg/rtc/types" "github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes" "github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"