MisskeyAdapter, NostrAdapter: try to fix misskey client context timeout, fix type signatures
This commit is contained in:
parent
67ec0e1809
commit
aecfd97c96
2 changed files with 6 additions and 5 deletions
|
@ -89,8 +89,8 @@ func (self *MisskeyAdapter) poll() {
|
||||||
|
|
||||||
var latest *time.Time
|
var latest *time.Time
|
||||||
|
|
||||||
notesService := self.mk.Notes()
|
var notesService *n.Service
|
||||||
timelineService := notesService.Timeline()
|
var timelineService *tl.Service
|
||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
@ -99,7 +99,8 @@ func (self *MisskeyAdapter) poll() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
notesService = self.mk.Notes()
|
||||||
|
timelineService = notesService.Timeline()
|
||||||
// TODO: we have to actually decode and pass our filter criteria
|
// TODO: we have to actually decode and pass our filter criteria
|
||||||
|
|
||||||
// probe for new notes
|
// probe for new notes
|
||||||
|
@ -265,7 +266,7 @@ func (self *MisskeyAdapter) toAuthor(usr mkm.User) *Author {
|
||||||
return &author
|
return &author
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *MisskeyAdapter) Fetch(etype, ids []string) error {
|
func (self *MisskeyAdapter) Fetch(etype string, ids []string) error {
|
||||||
for _, id := range ids {
|
for _, id := range ids {
|
||||||
switch etype {
|
switch etype {
|
||||||
case "message":
|
case "message":
|
||||||
|
|
|
@ -79,7 +79,7 @@ func (self *NostrAdapter) Subscribe(filter string) []error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *NostrAdapter) Fetch(etype, ids []string) error {
|
func (self *NostrAdapter) Fetch(etype string, ids []string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue