Skip to content

Commit 8858a22

Browse files
committed
server: golangci-lint continues
1 parent cf34e0f commit 8858a22

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/plugin.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ func (p *Plugin) rescheduleSync() error {
4444

4545
if p.syncJob != nil {
4646
if err := p.syncJob.Close(); err != nil {
47-
p.API.LogError("Failed to close sync job", "err", err)
47+
p.MattermostPlugin.API.LogError("Failed to close sync job", "err", err)
4848
}
4949
}
5050

5151
job, err := cluster.Schedule(
52-
p.API,
52+
p.MattermostPlugin.API,
5353
"SyncJob",
5454
cluster.MakeWaitForRoundedInterval(time.Duration(p.getConfiguration().SyncInterval)),
5555
p.runSyncJob,
@@ -65,7 +65,7 @@ func (p *Plugin) rescheduleSync() error {
6565

6666
// OnActivate is invoked when the plugin is activated. If an error is returned, the plugin will be deactivated.
6767
func (p *Plugin) OnActivate() error {
68-
p.client = pluginapi.NewClient(p.API, p.Driver)
68+
p.client = pluginapi.NewClient(p.MattermostPlugin.API, p.MattermostPlugin.Driver)
6969

7070
pluginapi.ConfigureLogrus(log.StandardLogger(), p.client)
7171

@@ -82,7 +82,7 @@ func (p *Plugin) OnActivate() error {
8282
}
8383

8484
syncMutex, err := cluster.NewMutex(
85-
p.API,
85+
p.MattermostPlugin.API,
8686
"SyncMutex",
8787
)
8888
if err != nil {
@@ -108,7 +108,7 @@ func (p *Plugin) UserWillLogIn(c *plugin.Context, user *model.User) string {
108108
if user.Props != nil && user.Props[syncengine.MMIdPUsernameProp] != user.Username {
109109
user.Username = user.Props[syncengine.MMIdPUsernameProp]
110110
var appErr *model.AppError
111-
user, appErr = p.API.UpdateUser(user)
111+
user, appErr = p.MattermostPlugin.API.UpdateUser(user)
112112
if appErr != nil {
113113
log.WithFields(log.Fields{
114114
"user": user,

0 commit comments

Comments
 (0)