Skip to content

Commit

Permalink
fix: tested with waiter
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Jan 10, 2024
1 parent 8eeca27 commit 9116b6b
Show file tree
Hide file tree
Showing 15 changed files with 74 additions and 29 deletions.
13 changes: 13 additions & 0 deletions app/sephirah/internal/biz/biztiphereth/porter.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ import (
)

func (t *Tiphereth) updatePorters(ctx context.Context) {
if t.supv.KnownInstancesRequireUpdate() {
porters, _, err := t.repo.ListPorters(ctx, model.Paging{
PageSize: 1000, //nolint:gomnd // TODO
PageNum: 1,
})
if err != nil {
logger.Errorf("list porters failed: %s", err.Error())
return
}
t.supv.UpdateKnownInstances(porters)
}
newPorters, err := t.supv.RefreshAliveInstances(ctx)
if err != nil {
logger.Errorf("refresh alive instances failed: %s", err.Error())
Expand All @@ -29,6 +40,7 @@ func (t *Tiphereth) updatePorters(ctx context.Context) {
}
for i, porter := range newPorters {
porter.ID = ids[i]
porter.Status = modeltiphereth.PorterInstanceStatusBlocked
}
err = t.repo.UpsertPorters(ctx, newPorters)
if err != nil {
Expand Down Expand Up @@ -63,6 +75,7 @@ func (t *Tiphereth) UpdatePorterStatus(
if err != nil {
return pb.ErrorErrorReasonUnspecified("%s", err.Error())
}
t.supv.KnownInstancesOutdated()
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion app/sephirah/internal/biz/biztiphereth/tiphereth.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewTiphereth(
searcher: sClient,
pullAccount: pullAccount,
}
err := cron.BySeconds(300, t.updatePorters, context.Background()) //nolint:gomnd // hard code min interval
err := cron.BySeconds(60, t.updatePorters, context.Background()) //nolint:gomnd // hard code min interval
if err != nil {
return nil, err
}
Expand Down
1 change: 1 addition & 0 deletions app/sephirah/internal/data/angela.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func (a *angelaRepo) UpsertApps(ctx context.Context, al []*modelgebura.App) erro
}
apps[i] = a.data.db.App.Create().
SetID(ap.ID).
SetInternal(ap.Internal).
SetSource(ap.Source).
SetSourceAppID(ap.SourceAppID).
SetSourceURL(ap.SourceURL).
Expand Down
44 changes: 29 additions & 15 deletions app/sephirah/internal/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ import (
var ProviderSet = wire.NewSet(NewSupervisor)

type Supervisor struct {
porter *client.Porter
auth *libauth.Auth
aliveInstances map[string]*modeltiphereth.PorterInstance
knownInstances map[string]*modeltiphereth.PorterInstance
featureSummary *modeltiphereth.ServerFeatureSummary
muFeatureSummary sync.RWMutex
trustedAddresses []string
porter *client.Porter
auth *libauth.Auth
aliveInstances map[string]*modeltiphereth.PorterInstance
knownInstances map[string]*modeltiphereth.PorterInstance
knownInstancesOutdated bool
featureSummary *modeltiphereth.ServerFeatureSummary
muFeatureSummary sync.RWMutex
trustedAddresses []string
}

func NewSupervisor(
Expand All @@ -39,17 +40,29 @@ func NewSupervisor(
c = new(conf.Sephirah_Porter)
}
return &Supervisor{
porter: porter,
auth: auth,
aliveInstances: map[string]*modeltiphereth.PorterInstance{},
knownInstances: nil, // init in UpdateKnownInstances
featureSummary: new(modeltiphereth.ServerFeatureSummary),
muFeatureSummary: sync.RWMutex{},
trustedAddresses: c.GetTrustedAddress(),
porter: porter,
auth: auth,
aliveInstances: map[string]*modeltiphereth.PorterInstance{},
knownInstances: nil, // init in UpdateKnownInstances
knownInstancesOutdated: true,
featureSummary: new(modeltiphereth.ServerFeatureSummary),
muFeatureSummary: sync.RWMutex{},
trustedAddresses: c.GetTrustedAddress(),
}, nil
}

func (s *Supervisor) KnownInstancesOutdated() {
s.knownInstancesOutdated = true
}

func (s *Supervisor) KnownInstancesRequireUpdate() bool {
return s.knownInstances == nil || s.knownInstancesOutdated
}

func (s *Supervisor) UpdateKnownInstances(instances []*modeltiphereth.PorterInstance) {
if s.knownInstances == nil {
s.knownInstances = map[string]*modeltiphereth.PorterInstance{}
}
for _, instance := range instances {
s.knownInstances[instance.Address] = instance
}
Expand Down Expand Up @@ -91,6 +104,7 @@ func (s *Supervisor) RefreshAliveInstances( //nolint:gocognit // TODO
feature := converter.ToBizPorterFeatureSummary(info.GetFeatureSummary())
var ins *modeltiphereth.PorterInstance
if s.knownInstances[address] != nil { //nolint:nestif // TODO
// known instance
if s.knownInstances[address].GlobalName != info.GetGlobalName() {
// bad instance, global name changed
continue
Expand All @@ -111,7 +125,7 @@ func (s *Supervisor) RefreshAliveInstances( //nolint:gocognit // TODO
}
ins.FeatureSummary = feature
} else {
// unknown instance
// new instance
ins = &modeltiphereth.PorterInstance{
ID: 0,
Name: info.GetName(),
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ require (
github.com/redis/go-redis/v9 v9.3.1
github.com/sony/sonyflake v1.2.0
github.com/stretchr/testify v1.8.4
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb
github.com/tuihub/protos v0.3.0
github.com/zhihu/norm v0.1.11
golang.org/x/crypto v0.17.0
golang.org/x/exp v0.0.0-20231226003508-02704c960a9b
Expand Down
9 changes: 9 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8
github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
Expand Down Expand Up @@ -322,6 +323,7 @@ github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZp
github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68=
github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/gobuffalo/envy v1.7.0/go.mod h1:n7DRkBerg/aorDM8kbduw5dN3oXGswK5liaSCx4T5NI=
github.com/gobuffalo/envy v1.7.1/go.mod h1:FurDp9+EDPE4aIUS3ZLyD+7/9fpx7YRt/ukY6jIHf0w=
github.com/gobuffalo/logger v1.0.1/go.mod h1:2zbswyIUa45I+c+FLXuWl9zSWEiVuthsk8ze5s8JvPs=
Expand Down Expand Up @@ -600,6 +602,7 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4=
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
Expand Down Expand Up @@ -816,6 +819,7 @@ github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdh
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/shabbyrobe/gocovmerge v0.0.0-20190829150210-3e036491d500 h1:WnNuhiq+FOY3jNj6JXFT+eLN3CQ/oPIsDPRanvwsmbI=
github.com/shabbyrobe/gocovmerge v0.0.0-20190829150210-3e036491d500/go.mod h1:+njLrG5wSeoG4Ds61rFgEzKvenR2UHbjMoDHsczxly0=
github.com/shirou/gopsutil/v3 v3.23.6 h1:5y46WPI9QBKBbK7EEccUPNXpJpNrvPuTD0O2zHEHT08=
Expand Down Expand Up @@ -900,6 +904,8 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb h1:fcHH16pGkKgiDSR7/TH9rQaUdFeB5g8P526IojWkX00=
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tuihub/protos v0.3.0 h1:DyZMmLjayRbG4dDRWuUDWwqIQXkHDEGFlX2o+Bfs9gM=
github.com/tuihub/protos v0.3.0/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
github.com/tylertreat/BoomFilters v0.0.0-20181028192813-611b3dbe80e8/go.mod h1:OYRfF6eb5wY9VRFkXJH8FFBi3plw2v+giaIu7P054pM=
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
Expand All @@ -918,6 +924,8 @@ github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7Fw
github.com/vesoft-inc/nebula-go/v2 v2.0.0-ga/go.mod h1:qvrlydV8O1Jbff7b7cXSLOvZNs9BcE8pFZa/1nvB3fo=
github.com/vesoft-inc/nebula-go/v2 v2.6.0 h1:yS5JH8eNjXtHSZXDRcNihdYaW9FyjOsrpG5iIMkIFBs=
github.com/vesoft-inc/nebula-go/v2 v2.6.0/go.mod h1:fehDUs97/mpmxXi9WezhznX0Dg7hmQRUoOWgDZv9zG0=
github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4=
github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
Expand All @@ -933,6 +941,7 @@ github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFi
github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
github.com/zclconf/go-cty v1.12.1 h1:PcupnljUm9EIvbgSHQnHhUr3fO6oFmkOrvs2BAFNXXY=
github.com/zclconf/go-cty v1.12.1/go.mod h1:s9IfD1LK5ccNMSWCVFCE2rJfHiZgi7JijgeWIMfhLvA=
github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8=
github.com/zhihu/norm v0.1.11 h1:uFVvfkCuYOZP19ZG7hJOWqOVDSwDOoY+auZ8UPObJcU=
github.com/zhihu/norm v0.1.11/go.mod h1:VBH+aIV1TJfLIM5kyhCD812ghzjp0XIYYv5W/sdOA5A=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
Expand Down
2 changes: 1 addition & 1 deletion pkg/porter-rss/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/stretchr/testify v1.8.4
github.com/tuihub/librarian v0.1.16
github.com/tuihub/librarian/pkg/porter-sdk v0.0.0
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb
github.com/tuihub/protos v0.3.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions pkg/porter-rss/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl
github.com/temoto/robotstxt v1.1.1/go.mod h1:+1AmkuG3IYkh1kv0d2qEB9Le88ehNO0zwOr3ujewlOo=
github.com/temoto/robotstxt v1.1.2 h1:W2pOjSJ6SWvldyEuiFXNxz3xZ8aiWX5LbfDiOFd7Fxg=
github.com/temoto/robotstxt v1.1.2/go.mod h1:+1AmkuG3IYkh1kv0d2qEB9Le88ehNO0zwOr3ujewlOo=
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb h1:fcHH16pGkKgiDSR7/TH9rQaUdFeB5g8P526IojWkX00=
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tuihub/protos v0.3.0 h1:DyZMmLjayRbG4dDRWuUDWwqIQXkHDEGFlX2o+Bfs9gM=
github.com/tuihub/protos v0.3.0/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
Expand Down
8 changes: 8 additions & 0 deletions pkg/porter-sdk/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package portersdk

import (
"context"
"fmt"
"time"

pb "github.com/tuihub/protos/pkg/librarian/porter/v1"
Expand Down Expand Up @@ -40,6 +41,13 @@ func (s *controller) GetPorterInformation(ctx context.Context, req *pb.GetPorter
}
func (s *controller) EnablePorter(ctx context.Context, req *pb.EnablePorterRequest) (
*pb.EnablePorterResponse, error) {
if s.token != nil {
if s.token.enabler == req.GetSephirahId() {
return &pb.EnablePorterResponse{}, nil
} else {
return nil, fmt.Errorf("porter already enabled by %d", s.token.enabler)
}
}
ctx = metadata.AppendToOutgoingContext(ctx, "authorization", "Bearer "+req.GetRefreshToken())
resp, err := s.client.RefreshToken(ctx, &sephirah.RefreshTokenRequest{})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/porter-sdk/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/go-kratos/kratos/contrib/registry/consul/v2 v2.0.0-20231219111544-85740b179b09
github.com/go-kratos/kratos/v2 v2.7.2
github.com/hashicorp/consul/api v1.26.1
github.com/tuihub/protos v0.2.49-0.20240106200526-5da10f1cc619
github.com/tuihub/protos v0.3.0
google.golang.org/grpc v1.60.1
google.golang.org/protobuf v1.32.0
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/porter-sdk/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/tuihub/protos v0.2.49-0.20240106200526-5da10f1cc619 h1:sDknObHDuC5zc0zkL7wxvfHBWAcMJk9iLGKmCVFYXHc=
github.com/tuihub/protos v0.2.49-0.20240106200526-5da10f1cc619/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tuihub/protos v0.3.0 h1:DyZMmLjayRbG4dDRWuUDWwqIQXkHDEGFlX2o+Bfs9gM=
github.com/tuihub/protos v0.3.0/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down
2 changes: 1 addition & 1 deletion pkg/porter-steam/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/google/go-querystring v1.1.0
github.com/tuihub/librarian v0.1.16
github.com/tuihub/librarian/pkg/porter-sdk v0.0.0
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb
github.com/tuihub/protos v0.3.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions pkg/porter-steam/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcU
github.com/temoto/robotstxt v1.1.1/go.mod h1:+1AmkuG3IYkh1kv0d2qEB9Le88ehNO0zwOr3ujewlOo=
github.com/temoto/robotstxt v1.1.2 h1:W2pOjSJ6SWvldyEuiFXNxz3xZ8aiWX5LbfDiOFd7Fxg=
github.com/temoto/robotstxt v1.1.2/go.mod h1:+1AmkuG3IYkh1kv0d2qEB9Le88ehNO0zwOr3ujewlOo=
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb h1:fcHH16pGkKgiDSR7/TH9rQaUdFeB5g8P526IojWkX00=
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tuihub/protos v0.3.0 h1:DyZMmLjayRbG4dDRWuUDWwqIQXkHDEGFlX2o+Bfs9gM=
github.com/tuihub/protos v0.3.0/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
Expand Down
2 changes: 1 addition & 1 deletion pkg/porter-telegram/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/nikoksr/notify v0.41.0
github.com/tuihub/librarian v0.1.16
github.com/tuihub/librarian/pkg/porter-sdk v0.0.0
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb
github.com/tuihub/protos v0.3.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions pkg/porter-telegram/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/technoweenie/multipartstreamer v1.0.1 h1:XRztA5MXiR1TIRHxH2uNxXxaIkKQDeX7m2XsSOlQEnM=
github.com/technoweenie/multipartstreamer v1.0.1/go.mod h1:jNVxdtShOxzAsukZwTSw6MDx5eUJoiEBsSvzDU9uzog=
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb h1:fcHH16pGkKgiDSR7/TH9rQaUdFeB5g8P526IojWkX00=
github.com/tuihub/protos v0.2.49-0.20240109174449-0f73b60ffbbb/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tuihub/protos v0.3.0 h1:DyZMmLjayRbG4dDRWuUDWwqIQXkHDEGFlX2o+Bfs9gM=
github.com/tuihub/protos v0.3.0/go.mod h1:oEU+QANr6l/E9StiEBW0W0vrnfGSjsQAVQGbFHPZOPc=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down

0 comments on commit 9116b6b

Please sign in to comment.